8 using System.Collections.Generic;
14 [CustomPropertyDrawer(typeof(Arrow),
true)]
17 public override string ClassName {
get {
return "Arrow"; } }
18 public override void OnGUI(
Rect pos, SerializedProperty prop, GUIContent label)
20 base.OnGUI(pos, prop, label);
21 if (MakeFoldout(prop,
""))
23 ++EditorGUI.indentLevel;
24 PropertyField(prop,
"m_Width");
25 PropertyField(prop,
"m_Height");
26 PropertyField(prop,
"m_Offset");
27 PropertyField(prop,
"m_Dent");
28 PropertyField(prop,
"m_Color");
29 --EditorGUI.indentLevel;
34 [CustomPropertyDrawer(typeof(
LineArrow),
true)]
37 public override string ClassName {
get {
return "LineArrow"; } }
38 public override void OnGUI(
Rect pos, SerializedProperty prop, GUIContent label)
40 base.OnGUI(pos, prop, label);
41 if (MakeFoldout(prop,
"m_Show"))
43 ++EditorGUI.indentLevel;
44 PropertyField(prop,
"m_Position");
45 PropertyField(prop,
"m_Arrow");
46 --EditorGUI.indentLevel;