2023-08-29 18:30:11 +08:00
|
|
|
using UnityEditor;
|
|
|
|
|
using XCharts.Runtime;
|
|
|
|
|
|
|
|
|
|
namespace XCharts.Editor
|
|
|
|
|
{
|
|
|
|
|
[ComponentEditor(typeof(GridLayout))]
|
|
|
|
|
public class GridLayoutEditor : MainComponentEditor<GridLayout>
|
|
|
|
|
{
|
|
|
|
|
public override void OnInspectorGUI()
|
|
|
|
|
{
|
|
|
|
|
++EditorGUI.indentLevel;
|
|
|
|
|
PropertyField("m_Left");
|
|
|
|
|
PropertyField("m_Right");
|
|
|
|
|
PropertyField("m_Top");
|
|
|
|
|
PropertyField("m_Bottom");
|
|
|
|
|
PropertyField("m_Row");
|
|
|
|
|
PropertyField("m_Column");
|
|
|
|
|
PropertyField("m_Spacing");
|
2023-08-29 22:20:29 +08:00
|
|
|
PropertyField("m_Inverse");
|
2023-08-29 18:30:11 +08:00
|
|
|
--EditorGUI.indentLevel;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|