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(); } protected override void Save() { base.Save(); EditorUtility.SetDirty(UIGenerateGlobalSettings); AssetDatabase.SaveAssets(); } } }