Files
XCharts/Editor/MainComponents/GridCoordEditor.cs

25 lines
794 B
C#
Raw Normal View History

2021-11-23 13:20:07 +08:00
using UnityEditor;
2022-02-19 22:37:57 +08:00
using XCharts.Runtime;
2021-11-23 13:20:07 +08:00
2021-12-24 13:33:09 +08:00
namespace XCharts.Editor
2021-11-23 13:20:07 +08:00
{
[ComponentEditor(typeof(GridCoord))]
public class GridCoordEditor : MainComponentEditor<GridCoord>
{
public override void OnInspectorGUI()
{
++EditorGUI.indentLevel;
var layoutIndex = baseProperty.FindPropertyRelative("m_LayoutIndex").intValue;
2023-08-29 18:30:11 +08:00
PropertyField("m_LayoutIndex");
PropertyField("m_Left");
PropertyField("m_Right");
PropertyField("m_Top");
PropertyField("m_Bottom");
2021-11-23 13:20:07 +08:00
PropertyField("m_BackgroundColor");
2022-02-25 08:10:09 +08:00
PropertyField("m_ShowBorder");
PropertyField("m_BorderWidth");
PropertyField("m_BorderColor");
2021-11-23 13:20:07 +08:00
--EditorGUI.indentLevel;
}
}
}