8 using System.Collections.Generic;
14 [CustomPropertyDrawer(typeof(IconStyle),
true)]
17 public override string ClassName {
get {
return "IconStyle"; } }
18 public override void OnGUI(
Rect pos, SerializedProperty prop, GUIContent label)
20 base.OnGUI(pos, prop, label);
21 if (MakeFoldout(prop,
"m_Show"))
23 ++EditorGUI.indentLevel;
24 PropertyField(prop,
"m_Layer");
25 PropertyField(prop,
"m_Align");
26 PropertyField(prop,
"m_Sprite");
27 PropertyField(prop,
"m_Color");
28 PropertyField(prop,
"m_Width");
29 PropertyField(prop,
"m_Height");
30 PropertyField(prop,
"m_Offset");
31 PropertyField(prop,
"m_AutoHideWhenLabelEmpty");
32 --EditorGUI.indentLevel;