27 lines
779 B
C#
27 lines
779 B
C#
|
|
using AlicizaX.Editor;
|
|||
|
|
using Sirenix.OdinInspector;
|
|||
|
|
using UnityEditor;
|
|||
|
|
|
|||
|
|
namespace AlicizaX.UI.Editor
|
|||
|
|
{
|
|||
|
|
[System.Serializable]
|
|||
|
|
[DisplayName("UI设置")]
|
|||
|
|
internal sealed class UIGenerateGlobalSettingTab : GameFrameworkTabBase
|
|||
|
|
{
|
|||
|
|
[Required] [InlineEditor(InlineEditorObjectFieldModes.CompletelyHidden)] [DisableInPlayMode] [HideLabel]
|
|||
|
|
public UIGenerateGlobalSettings UIGenerateGlobalSettings;
|
|||
|
|
|
|||
|
|
public UIGenerateGlobalSettingTab()
|
|||
|
|
{
|
|||
|
|
UIGenerateGlobalSettings = ScriptableSingletonUtil.Get<UIGenerateGlobalSettings>();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
protected override void Save()
|
|||
|
|
{
|
|||
|
|
base.Save();
|
|||
|
|
EditorUtility.SetDirty(UIGenerateGlobalSettings);
|
|||
|
|
AssetDatabase.SaveAssets();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|