Files
XCharts/Editor/ChildComponents/DebugInfoDrawer.cs
2022-03-04 22:17:32 +08:00

26 lines
820 B
C#

using UnityEditor;
using UnityEngine;
using XCharts.Runtime;
namespace XCharts.Editor
{
[CustomPropertyDrawer(typeof(DebugInfo), true)]
public class DebugInfoDrawer : BasePropertyDrawer
{
public override string ClassName { get { return "Debug"; } }
public override void OnGUI(Rect pos, SerializedProperty prop, GUIContent label)
{
base.OnGUI(pos, prop, label);
if (MakeComponentFoldout(prop, ""))
{
++EditorGUI.indentLevel;
PropertyField(prop, "m_FoldSeries");
PropertyField(prop, "m_ShowDebugInfo");
PropertyField(prop, "m_ShowAllChartObject");
PropertyField(prop, "m_DebugInfoTextStyle");
--EditorGUI.indentLevel;
}
}
}
}