@@ -101,6 +101,8 @@ public abstract class UIEffectPropertyEditor : Editor
101
101
private SerializedProperty _detailTexSpeed ;
102
102
103
103
private SerializedProperty _flip ;
104
+ private static GUIContent s_RotationLabel = new GUIContent ( "* Rotation" ) ;
105
+ private static GUIContent s_KeepAspectRatioLabel = new GUIContent ( "* Keep Aspect Ratio" ) ;
104
106
105
107
protected virtual void OnEnable ( )
106
108
{
@@ -134,6 +136,9 @@ protected virtual void OnEnable()
134
136
_transitionPatternReverse = serializedObject . FindProperty ( "m_TransitionPatternReverse" ) ;
135
137
_transitionAutoPlaySpeed = serializedObject . FindProperty ( "m_TransitionAutoPlaySpeed" ) ;
136
138
139
+ s_RotationLabel . tooltip = _transitionRotation . tooltip ;
140
+ s_KeepAspectRatioLabel . tooltip = _transitionKeepAspectRatio . tooltip ;
141
+
137
142
_targetMode = serializedObject . FindProperty ( "m_TargetMode" ) ;
138
143
_targetColor = serializedObject . FindProperty ( "m_TargetColor" ) ;
139
144
_targetRange = serializedObject . FindProperty ( "m_TargetRange" ) ;
@@ -251,9 +256,8 @@ public void DrawProperties()
251
256
EditorApplication . QueuePlayerLoopUpdate ( ) ;
252
257
}
253
258
254
- EditorGUILayout . PropertyField ( _transitionRotation , EditorGUIUtility . TrTempContent ( "Rotation" ) ) ;
255
- EditorGUILayout . PropertyField ( _transitionKeepAspectRatio ,
256
- EditorGUIUtility . TrTempContent ( "Keep Aspect Ratio" ) ) ;
259
+ EditorGUILayout . PropertyField ( _transitionRotation , s_RotationLabel ) ;
260
+ EditorGUILayout . PropertyField ( _transitionKeepAspectRatio , s_KeepAspectRatioLabel ) ;
257
261
EditorGUILayout . PropertyField ( _transitionReverse , EditorGUIUtility . TrTempContent ( "Reverse" ) ) ;
258
262
EditorGUI . indentLevel -- ;
259
263
@@ -387,8 +391,7 @@ public void DrawProperties()
387
391
EditorGUILayout . PropertyField ( _gradationRotation ) ;
388
392
}
389
393
390
- EditorGUILayout . PropertyField ( _transitionKeepAspectRatio ,
391
- EditorGUIUtility . TrTempContent ( "Keep Aspect Ratio" ) ) ;
394
+ EditorGUILayout . PropertyField ( _transitionKeepAspectRatio , s_KeepAspectRatioLabel ) ;
392
395
EditorGUI . indentLevel -- ;
393
396
}
394
397
@@ -442,9 +445,8 @@ public void DrawProperties()
442
445
EditorApplication . QueuePlayerLoopUpdate ( ) ;
443
446
}
444
447
445
- EditorGUILayout . PropertyField ( _transitionRotation , EditorGUIUtility . TrTempContent ( "Rotation" ) ) ;
446
- EditorGUILayout . PropertyField ( _transitionKeepAspectRatio ,
447
- EditorGUIUtility . TrTempContent ( "Keep Aspect Ratio" ) ) ;
448
+ EditorGUILayout . PropertyField ( _transitionRotation , s_RotationLabel ) ;
449
+ EditorGUILayout . PropertyField ( _transitionKeepAspectRatio , s_KeepAspectRatioLabel ) ;
448
450
EditorGUI . indentLevel -- ;
449
451
EditorGUI . indentLevel -- ;
450
452
}
0 commit comments