Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

CommentItemDrawer.cs 881B

1234567891011121314151617181920212223242526
  1. using UnityEditor;
  2. using UnityEngine;
  3. using XCharts.Runtime;
  4. namespace XCharts.Editor
  5. {
  6. [CustomPropertyDrawer(typeof(CommentItem), true)]
  7. public class CommentItemDrawer : BasePropertyDrawer
  8. {
  9. public override string ClassName { get { return "CommentItem"; } }
  10. public override void OnGUI(Rect pos, SerializedProperty prop, GUIContent label)
  11. {
  12. base.OnGUI(pos, prop, label);
  13. if (MakeComponentFoldout(prop, "m_Show", "m_Content", true))
  14. {
  15. ++EditorGUI.indentLevel;
  16. PropertyField(prop, "m_Content");
  17. PropertyField(prop, "m_Location");
  18. //PropertyField(prop, "m_MarkRect");
  19. //PropertyField(prop, "m_MarkStyle");
  20. PropertyField(prop, "m_LabelStyle");
  21. --EditorGUI.indentLevel;
  22. }
  23. }
  24. }
  25. }