13 [CustomPropertyDrawer(typeof(Background),
true)]
16 public override string ClassName {
get {
return "Background"; } }
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_Image");
24 PropertyField(prop,
"m_ImageType");
25 PropertyField(prop,
"m_ImageColor");
26 PropertyField(prop,
"m_HideThemeBackgroundColor");
27 --EditorGUI.indentLevel;