@@ -94,6 +94,7 @@ public override VisualElement CreatePropertyGUI(SerializedProperty property)
94
94
var max = settings . FindPropertyRelative ( nameof ( IntParameter . IntSettings . max ) ) ;
95
95
container . Add ( new IMGUIContainer ( ( ) => {
96
96
int newValue ;
97
+ EditorGUIUtility . labelWidth = 150 ;
97
98
if ( ( IntParameter . IntMode ) mode . enumValueIndex == IntParameter . IntMode . Slider )
98
99
{
99
100
newValue = EditorGUILayout . IntSlider ( name . stringValue , val . intValue , min . intValue , max . intValue ) ;
@@ -106,6 +107,7 @@ public override VisualElement CreatePropertyGUI(SerializedProperty property)
106
107
val . intValue = newValue ;
107
108
ApplyModifiedProperties ( property ) ;
108
109
}
110
+ EditorGUIUtility . labelWidth = 0 ;
109
111
} ) ) ;
110
112
111
113
return container ;
@@ -126,6 +128,7 @@ public override VisualElement CreatePropertyGUI(SerializedProperty property)
126
128
var min = settings . FindPropertyRelative ( nameof ( Vector2Parameter . Vector2Settings . min ) ) ;
127
129
var max = settings . FindPropertyRelative ( nameof ( Vector2Parameter . Vector2Settings . max ) ) ;
128
130
container . Add ( new IMGUIContainer ( ( ) => {
131
+ EditorGUIUtility . labelWidth = 150 ;
129
132
EditorGUI . BeginChangeCheck ( ) ;
130
133
if ( ( Vector2Parameter . Vector2Mode ) mode . enumValueIndex == Vector2Parameter . Vector2Mode . MinMaxSlider )
131
134
{
@@ -138,6 +141,7 @@ public override VisualElement CreatePropertyGUI(SerializedProperty property)
138
141
val . vector2Value = EditorGUILayout . Vector2Field ( name . stringValue , val . vector2Value ) ;
139
142
if ( EditorGUI . EndChangeCheck ( ) )
140
143
ApplyModifiedProperties ( property ) ;
144
+ EditorGUIUtility . labelWidth = 0 ;
141
145
} ) ) ;
142
146
143
147
return container ;
0 commit comments