public override void OnInspectorGUI() { serializedObject.Update(); EZEditorGUIUtility.MonoBehaviourTitle(target as MonoBehaviour); elementList.DoLayoutList(); serializedObject.ApplyModifiedProperties(); }
public override void OnInspectorGUI() { serializedObject.Update(); EZEditorGUIUtility.MonoBehaviourTitle(target as MonoBehaviour); DrawOtherProperties(); EditorGUILayout.Space(); EditorGUILayout.PropertyField(m_AllowSwitchOff); EditorGUILayout.PropertyField(m_SwitchOnStart); EditorGUILayout.PropertyField(m_Next); optionList.DoLayoutList(); serializedObject.ApplyModifiedProperties(); }
public override void OnInspectorGUI() { serializedObject.Update(); EZEditorGUIUtility.MonoBehaviourTitle(target as MonoBehaviour); EditorGUILayout.PropertyField(m_TransitionType); EditorGUI.indentLevel++; switch (m_TransitionType.enumValueIndex) { case (int)EZTransition.TransitionType.None: break; case (int)EZTransition.TransitionType.Scale: EditorGUILayout.PropertyField(m_RectTransform); EditorGUILayout.PropertyField(m_ScaleState.FindPropertyRelative("m_NormalScale")); EditorGUILayout.PropertyField(m_ScaleState.FindPropertyRelative("m_HighlightedScale")); EditorGUILayout.PropertyField(m_ScaleState.FindPropertyRelative("m_PressedScale")); EditorGUILayout.PropertyField(m_ScaleState.FindPropertyRelative("m_DisabledScale")); break; case (int)EZTransition.TransitionType.Size: EditorGUILayout.PropertyField(m_RectTransform); EditorGUILayout.PropertyField(m_SizeState.FindPropertyRelative("m_NormalSize")); EditorGUILayout.PropertyField(m_SizeState.FindPropertyRelative("m_HighlightedSize")); EditorGUILayout.PropertyField(m_SizeState.FindPropertyRelative("m_PressedSize")); EditorGUILayout.PropertyField(m_SizeState.FindPropertyRelative("m_DisabledSize")); break; case (int)EZTransition.TransitionType.OutlineDistance: EditorGUILayout.PropertyField(m_Outline); EditorGUILayout.PropertyField(m_OutlineDistanceState.FindPropertyRelative("m_NormalDistance")); EditorGUILayout.PropertyField(m_OutlineDistanceState.FindPropertyRelative("m_HighlightedDistance")); EditorGUILayout.PropertyField(m_OutlineDistanceState.FindPropertyRelative("m_PressedDistance")); EditorGUILayout.PropertyField(m_OutlineDistanceState.FindPropertyRelative("m_DisabledDistance")); break; case (int)EZTransition.TransitionType.OutlineColor: EditorGUILayout.PropertyField(m_Outline); EditorGUILayout.PropertyField(m_OutlineColorState.FindPropertyRelative("m_NormalColor")); EditorGUILayout.PropertyField(m_OutlineColorState.FindPropertyRelative("m_HighlightedColor")); EditorGUILayout.PropertyField(m_OutlineColorState.FindPropertyRelative("m_PressedColor")); EditorGUILayout.PropertyField(m_OutlineColorState.FindPropertyRelative("m_DisabledColor")); break; } EditorGUI.indentLevel--; serializedObject.ApplyModifiedProperties(); }