public override void OnInspectorGUI() { _target = (PlayMakerUGuiComponentProxy)target; // let the user select the target for the ui component _target.UiTargetOption = (OwnerDefaultOption)EditorGUILayout.EnumPopup("Target", _target.UiTargetOption); if (_target.UiTargetOption == OwnerDefaultOption.SpecifyGameObject) { EditorGUI.indentLevel++; _target.UiTarget = (GameObject)EditorGUILayout.ObjectField("Ui Target", _target.UiTarget, typeof(GameObject), true); EditorGUI.indentLevel--; } else { _target.UiTarget = _target.gameObject; } ContextGUI(); if (UiTargetIsValid) { EditorGUI.indentLevel++; if (_target.action == PlayMakerUGuiComponentProxy.ActionType.SendFsmEvent) { SendFsmEventGUI(); } else { SetFsmVariableGUI(); } EditorGUI.indentLevel--; _target.debug = EditorGUILayout.Toggle("Debug", _target.debug); } }
public override void OnInspectorGUI() { _target = (PlayMakerUGuiComponentProxy)target; // let the user select the target for the ui component _target.UiTargetOption = (OwnerDefaultOption)EditorGUILayout.EnumPopup("Target",_target.UiTargetOption); if (_target.UiTargetOption == OwnerDefaultOption.SpecifyGameObject) { EditorGUI.indentLevel++; _target.UiTarget = (GameObject)EditorGUILayout.ObjectField("Ui Target",_target.UiTarget,typeof(GameObject),true); EditorGUI.indentLevel--; }else{ _target.UiTarget = _target.gameObject; } ContextGUI(); if (UiTargetIsValid) { EditorGUI.indentLevel++; if (_target.action== PlayMakerUGuiComponentProxy.ActionType.SendFsmEvent) { SendFsmEventGUI(); }else{ SetFsmVariableGUI(); } EditorGUI.indentLevel--; _target.debug = EditorGUILayout.Toggle("Debug",_target.debug); } }