13 [CustomPropertyDrawer(typeof(Location),
true)]
16 public override string ClassName {
get {
return "Location"; } }
17 public override void OnGUI(
Rect pos, SerializedProperty prop, GUIContent label)
19 base.OnGUI(pos, prop, label);
20 if (MakeFoldout(prop,
"m_Align"))
22 ++EditorGUI.indentLevel;
23 PropertyField(prop,
"m_Top");
24 PropertyField(prop,
"m_Bottom");
25 PropertyField(prop,
"m_Left");
26 PropertyField(prop,
"m_Right");
27 --EditorGUI.indentLevel;