44 lines
1.0 KiB
C#
44 lines
1.0 KiB
C#
using UnityEngine;
|
|
|
|
namespace LE_LevelEditor
|
|
{
|
|
public class LE_ConfigLevel : MonoBehaviour
|
|
{
|
|
[Tooltip("If enabled, then objects that have an equal resource path, position, rotation and scale are detected as duplicate. Only one duplicate is saved, the others are destroyed. Users often generate duplicates by clicking the 'duplicate' button or using Ctrl+D.")]
|
|
[SerializeField]
|
|
private bool m_isRemoveDuplicatesOnSave = true;
|
|
|
|
[Tooltip("The width of the level icon texture that is captured when the 'Render Level Icon' button is clicked.")]
|
|
[SerializeField]
|
|
private int m_levelIconWidth = 256;
|
|
|
|
[SerializeField]
|
|
[Tooltip("The height of the level icon texture that is captured when the 'Render Level Icon' button is clicked.")]
|
|
private int m_levelIconHeight = 256;
|
|
|
|
public bool IsRemoveDuplicatesOnSave
|
|
{
|
|
get
|
|
{
|
|
return m_isRemoveDuplicatesOnSave;
|
|
}
|
|
}
|
|
|
|
public int LevelIconWidth
|
|
{
|
|
get
|
|
{
|
|
return m_levelIconWidth;
|
|
}
|
|
}
|
|
|
|
public int LevelIconHeight
|
|
{
|
|
get
|
|
{
|
|
return m_levelIconHeight;
|
|
}
|
|
}
|
|
}
|
|
}
|