@@ -236,7 +236,6 @@ static void DoMinMaxCurvesField(Rect position, int id, SerializedProperty proper
236
236
public override VisualElement CreatePropertyGUI ( SerializedProperty property )
237
237
{
238
238
const string StylesheetPath = "StyleSheets/ParticleSystem/ParticleSystem.uss" ;
239
- const string HideClass = "unity-hidden" ;
240
239
const string AlignClass = "unity-base-field__aligned" ;
241
240
const string InputClass = "unity-base-popup-field__input" ;
242
241
const string RowClass = "unity-particle-system-min-max-curve__row" ;
@@ -245,7 +244,7 @@ public override VisualElement CreatePropertyGUI(SerializedProperty property)
245
244
PropertyField PrepareProperty ( SerializedProperty prop , string label , VisualElement parent )
246
245
{
247
246
var propField = new PropertyField ( prop , label ) ;
248
- propField . AddToClassList ( HideClass ) ;
247
+ propField . AddToClassList ( UIElementsUtility . hiddenClassName ) ;
249
248
propField . AddToClassList ( GrowClass ) ;
250
249
parent . Add ( propField ) ;
251
250
return propField ;
@@ -273,7 +272,7 @@ PropertyField PrepareProperty(SerializedProperty prop, string label, VisualEleme
273
272
else DoMinMaxCurvesField ( rect , m_Property . curveMin . GetHashCode ( ) , m_Property . curveMax , m_Property . curveMin , m_Property . curveMultiplier , s_Styles . curveColor , s_Styles . curveBackgroundColor , xAxisLabel ) ;
274
273
if ( EditorGUI . EndChangeCheck ( ) ) m_Property . curveMax . serializedObject . ApplyModifiedProperties ( ) ;
275
274
} ) ;
276
- region . AddToClassList ( HideClass ) ;
275
+ region . AddToClassList ( UIElementsUtility . hiddenClassName ) ;
277
276
region . AddToClassList ( GrowClass ) ;
278
277
container . Add ( region ) ;
279
278
@@ -286,7 +285,7 @@ PropertyField PrepareProperty(SerializedProperty prop, string label, VisualEleme
286
285
m_Property . mode . intValue = ( int ) state ;
287
286
m_Property . mode . serializedObject . ApplyModifiedProperties ( ) ;
288
287
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 ) ;
290
289
291
290
if ( constantMax . Children ( ) . Count ( ) > 0 )
292
291
{
@@ -305,8 +304,8 @@ PropertyField PrepareProperty(SerializedProperty prop, string label, VisualEleme
305
304
}
306
305
}
307
306
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 ) ;
310
309
AnimationCurvePreviewCache . ClearCache ( ) ;
311
310
} ;
312
311
mode . RegisterValueChangedCallback ( valueChangeAction ) ;
0 commit comments