13 [CustomPropertyDrawer(typeof(Vessel),
true)]
16 public override string ClassName {
get {
return "Vessel"; } }
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 var shape = (
Vessel.
Shape)prop.FindPropertyRelative(
"m_Shape").intValue;
24 PropertyField(prop,
"m_Shape");
25 PropertyField(prop,
"m_ShapeWidth");
26 PropertyField(prop,
"m_Gap");
27 PropertyTwoFiled(prop,
"m_Center");
28 PropertyField(prop,
"m_BackgroundColor");
29 PropertyField(prop,
"m_Color");
30 PropertyField(prop,
"m_AutoColor");
34 PropertyField(prop,
"m_Radius");
35 PropertyField(prop,
"m_Smoothness");
38 PropertyField(prop,
"m_Width");
39 PropertyField(prop,
"m_Height");
40 PropertyField(prop,
"m_CornerRadius");
43 --EditorGUI.indentLevel;