CommentEditor.cs 459 B

123456789101112131415161718
  1. using UnityEditor;
  2. using XCharts.Runtime;
  3. namespace XCharts.Editor
  4. {
  5. [ComponentEditor(typeof(Comment))]
  6. public class CommentEditor : MainComponentEditor<Comment>
  7. {
  8. public override void OnInspectorGUI()
  9. {
  10. ++EditorGUI.indentLevel;
  11. PropertyField("m_LabelStyle");
  12. //PropertyField("m_MarkStyle");
  13. PropertyListField("m_Items", true);
  14. --EditorGUI.indentLevel;
  15. }
  16. }
  17. }