TitleEditor.cs 565 B

123456789101112131415161718192021
  1. using UnityEditor;
  2. using XCharts.Runtime;
  3. namespace XCharts.Editor
  4. {
  5. [ComponentEditor(typeof(Title))]
  6. public class TitleEditor : MainComponentEditor<Title>
  7. {
  8. public override void OnInspectorGUI()
  9. {
  10. ++EditorGUI.indentLevel;
  11. PropertyField("m_Text");
  12. PropertyField("m_SubText");
  13. PropertyField("m_ItemGap");
  14. PropertyField("m_Location");
  15. PropertyField("m_LabelStyle");
  16. PropertyField("m_SubLabelStyle");
  17. --EditorGUI.indentLevel;
  18. }
  19. }
  20. }