13 [CustomPropertyDrawer(typeof(Polar),
true)]
16 public override string ClassName {
get {
return "Polar"; } }
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 PropertyTwoFiled(prop,
"m_Center");
24 PropertyField(prop,
"m_Radius");
25 PropertyField(prop,
"m_BackgroundColor");
26 --EditorGUI.indentLevel;