Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,9 @@
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));

Check warning on line 366 in Packages/com.unity.inputsystem/InputSystem/Editor/InputParameterEditor.cs

View check run for this annotation

Codecov GitHub.com / codecov/patch

Packages/com.unity.inputsystem/InputSystem/Editor/InputParameterEditor.cs#L366

Added line #L366 was not covered by tests
if (!m_UseDefaultValue)
SetValue(newValue);

Expand Down