com.soviby.unity.ui.ugui-to.../Assets/Editor/Windows/EditWindow.cs
2024-12-03 13:05:13 +08:00

56 lines
1.4 KiB
C#

using Sirenix.OdinInspector;
using Sirenix.OdinInspector.Editor;
using UnityEngine;
namespace UguiToolkit.Editor.Windows
{
public class EditWindow : BaseWindow<EditWindow>
{
[SerializeField, HideInInspector]
private bool m_showHierarchyOfEntityChange = false;
[SerializeField, HideInInspector]
private bool m_showBackground = true;
[LabelText("Hierarchy是否显示"), ShowInInspector]
private bool ShowHierarchyOfEntity
{
get => m_showHierarchyOfEntityChange;
set
{
m_showHierarchyOfEntityChange = value;
GlobalManager.Instance.showHierarchyOfEntityChanged?.Invoke(m_showHierarchyOfEntityChange);
}
}
[LabelText("背景是否显示"), ShowInInspector]
private bool ShowBackground
{
get => m_showBackground;
set
{
m_showBackground = value;
GlobalManager.Instance.showBackgroundChanged?.Invoke(m_showBackground);
}
}
[Button("创建所有Text")]
private void CreateAllTextEntity()
{
GlobalManager.Instance.createAllTextEntity?.Invoke();
}
public override string GettitleContent()
{
return "助手编辑界面";
}
public override void Init(WindowArgs args = null)
{
}
}
}