2022-02-25 08:10:09 +08:00
|
|
|
|
|
|
|
|
|
|
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);
|
2022-03-09 07:26:15 +08:00
|
|
|
|
if (MakeComponentFoldout(prop, "m_Show", false))
|
2022-02-25 08:10:09 +08:00
|
|
|
|
{
|
|
|
|
|
|
++EditorGUI.indentLevel;
|
|
|
|
|
|
PropertyField(prop, "m_FoldSeries");
|
|
|
|
|
|
PropertyField(prop, "m_ShowDebugInfo");
|
2022-03-04 22:17:32 +08:00
|
|
|
|
PropertyField(prop, "m_ShowAllChartObject");
|
2022-02-25 08:10:09 +08:00
|
|
|
|
PropertyField(prop, "m_DebugInfoTextStyle");
|
|
|
|
|
|
--EditorGUI.indentLevel;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|