@@ -236,7 +236,6 @@ static void DoMinMaxCurvesField(Rect position, int id, SerializedProperty proper
236236 public override VisualElement CreatePropertyGUI ( SerializedProperty property )
237237 {
238238 const string StylesheetPath = "StyleSheets/ParticleSystem/ParticleSystem.uss" ;
239- const string HideClass = "unity-hidden" ;
240239 const string AlignClass = "unity-base-field__aligned" ;
241240 const string InputClass = "unity-base-popup-field__input" ;
242241 const string RowClass = "unity-particle-system-min-max-curve__row" ;
@@ -245,7 +244,7 @@ public override VisualElement CreatePropertyGUI(SerializedProperty property)
245244 PropertyField PrepareProperty ( SerializedProperty prop , string label , VisualElement parent )
246245 {
247246 var propField = new PropertyField ( prop , label ) ;
248- propField . AddToClassList ( HideClass ) ;
247+ propField . AddToClassList ( UIElementsUtility . hiddenClassName ) ;
249248 propField . AddToClassList ( GrowClass ) ;
250249 parent . Add ( propField ) ;
251250 return propField ;
@@ -273,7 +272,7 @@ PropertyField PrepareProperty(SerializedProperty prop, string label, VisualEleme
273272 else DoMinMaxCurvesField ( rect , m_Property . curveMin . GetHashCode ( ) , m_Property . curveMax , m_Property . curveMin , m_Property . curveMultiplier , s_Styles . curveColor , s_Styles . curveBackgroundColor , xAxisLabel ) ;
274273 if ( EditorGUI . EndChangeCheck ( ) ) m_Property . curveMax . serializedObject . ApplyModifiedProperties ( ) ;
275274 } ) ;
276- region . AddToClassList ( HideClass ) ;
275+ region . AddToClassList ( UIElementsUtility . hiddenClassName ) ;
277276 region . AddToClassList ( GrowClass ) ;
278277 container . Add ( region ) ;
279278
@@ -286,7 +285,7 @@ PropertyField PrepareProperty(SerializedProperty prop, string label, VisualEleme
286285 m_Property . mode . intValue = ( int ) state ;
287286 m_Property . mode . serializedObject . ApplyModifiedProperties ( ) ;
288287
289- constantMax . EnableInClassList ( HideClass , state != MinMaxCurveState . k_Scalar && state != MinMaxCurveState . k_TwoScalars ) ;
288+ constantMax . EnableInClassList ( UIElementsUtility . hiddenClassName , state != MinMaxCurveState . k_Scalar && state != MinMaxCurveState . k_TwoScalars ) ;
290289
291290 if ( constantMax . Children ( ) . Count ( ) > 0 )
292291 {
@@ -305,8 +304,8 @@ PropertyField PrepareProperty(SerializedProperty prop, string label, VisualEleme
305304 }
306305 }
307306
308- constantMin . EnableInClassList ( HideClass , state != MinMaxCurveState . k_TwoScalars ) ;
309- region . EnableInClassList ( HideClass , state != MinMaxCurveState . k_Curve && state != MinMaxCurveState . k_TwoCurves ) ;
307+ constantMin . EnableInClassList ( UIElementsUtility . hiddenClassName , state != MinMaxCurveState . k_TwoScalars ) ;
308+ region . EnableInClassList ( UIElementsUtility . hiddenClassName , state != MinMaxCurveState . k_Curve && state != MinMaxCurveState . k_TwoCurves ) ;
310309 AnimationCurvePreviewCache . ClearCache ( ) ;
311310 } ;
312311 mode . RegisterValueChangedCallback ( valueChangeAction ) ;
0 commit comments