Browse Source

Added BeginProperty / EndProperty to Variable Property Drawer

master
chrisgregan 11 years ago
parent
commit
1348121c18
  1. 4
      Assets/Fungus/Editor/FungusScript/FungusScriptEditor.cs
  2. BIN
      Assets/Shuttle/ShuttleGame.unity

4
Assets/Fungus/Editor/FungusScript/FungusScriptEditor.cs

@ -14,6 +14,8 @@ namespace Fungus.Script
{
public override void OnGUI (Rect position, SerializedProperty property, GUIContent label)
{
EditorGUI.BeginProperty(position, label, property);
SerializedProperty keyProp = property.FindPropertyRelative("key");
SerializedProperty typeProp = property.FindPropertyRelative("type");
SerializedProperty scopeProp = property.FindPropertyRelative("scope");
@ -50,6 +52,8 @@ namespace Fungus.Script
typeProp.enumValueIndex = typeValue;
scopeProp.enumValueIndex = scopeValue;
}
EditorGUI.EndProperty();
}
}

BIN
Assets/Shuttle/ShuttleGame.unity

Binary file not shown.
Loading…
Cancel
Save