public override void OnGUI(Rect rect)
{
rect.height = EditorGUIUtility.singleLineHeight;
rect.y += rect.height * 2;
EditorGUI.BeginChangeCheck();
switch (assignmentType.enumValueIndex)
{
case 0: // constant (we're not actually showing this right now)
_editor.OnInspectorGUI();
break;
case 1: // global
EditorGUIUtility.labelWidth = 100;
_editor.OnInspectorGUI();
EditorGUIUtility.labelWidth = 0;
break;
case 2: // instanced
if (_noReference)
{
GUILayout.Label("Not Intitialized / Lists not supported yet");
}
else
{
EditorGUIUtility.labelWidth = 100;
_editor.OnInspectorGUI();
EditorGUIUtility.labelWidth = 0;
}
break;
}
}