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