Пример #1
0
 public override void OnGUI(Rect pos, SerializedProperty prop, GUIContent label)
 {
     if (prop.name == "m_Script")
     {
         GUI.enabled = false;
         EditorGUI.ObjectField(pos, "", prop.objectReferenceValue, typeof(vp_UnitBankType), false);
         GUI.enabled = true;
     }
     else
     {
         prop.objectReferenceValue = EditorGUI.ObjectField(pos, Spaces.AddSpaces(prop.name), prop.objectReferenceValue, typeof(vp_UnitBankType), false);
     }
 }