diff --git a/Packages/com.unity.inputsystem/InputSystem/Editor/InputParameterEditor.cs b/Packages/com.unity.inputsystem/InputSystem/Editor/InputParameterEditor.cs index 6313b4343c..29c0c811ac 100644 --- a/Packages/com.unity.inputsystem/InputSystem/Editor/InputParameterEditor.cs +++ b/Packages/com.unity.inputsystem/InputSystem/Editor/InputParameterEditor.cs @@ -361,8 +361,9 @@ public void OnGUI() if ((value - float.Epsilon) == m_DefaultInitializedValue) value = m_DefaultInitializedValue; - ////TODO: use slider rather than float field - var newValue = EditorGUILayout.FloatField(m_ValueLabel, value, GUILayout.ExpandWidth(false)); + const float k_MinValue = 0f; + const float k_MaxValue = 1f; + var newValue = EditorGUILayout.Slider(m_ValueLabel, value, k_MinValue, k_MaxValue, GUILayout.ExpandWidth(false)); if (!m_UseDefaultValue) SetValue(newValue);