| | |
| | | SerializedProperty closeAnimationType; |
| | | SerializedProperty animeRoot; |
| | | SerializedProperty animeDuration; |
| | | SerializedProperty scaleOverInOutCurve; |
| | | SerializedProperty animationEase; |
| | | |
| | | SerializedProperty openMask; |
| | |
| | | closeAnimationType = serializedObject.FindProperty("closeAnimationType"); |
| | | animeRoot = serializedObject.FindProperty("_rectTransform"); |
| | | animeDuration = serializedObject.FindProperty("animeDuration"); |
| | | scaleOverInOutCurve = serializedObject.FindProperty("scaleOverInOutCurve"); |
| | | animationEase = serializedObject.FindProperty("animationEase"); |
| | | |
| | | openMask = serializedObject.FindProperty("openMask"); |
| | |
| | | { |
| | | EditorGUI.indentLevel++; |
| | | EditorGUILayout.PropertyField(animeDuration); |
| | | if ((UIAnimationType)openAnimationType.enumValueIndex == UIAnimationType.ScaleOverInOut) |
| | | { |
| | | EditorGUILayout.PropertyField(scaleOverInOutCurve); |
| | | } |
| | | EditorGUILayout.PropertyField(animationEase); |
| | | EditorGUI.indentLevel--; |
| | | } |