We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cb3e15 commit c2712d0Copy full SHA for c2712d0
Assets/_Scripts/UI/PolyUI.cs
@@ -198,8 +198,8 @@ void AmountInputChanged()
198
{
199
var slider = EventSystem.current.currentSelectedGameObject.GetComponentInParent<OpPrefabManager>().AmountSlider;
200
var input = EventSystem.current.currentSelectedGameObject.GetComponentInParent<OpPrefabManager>().AmountInput;
201
- int value;
202
- if (Int32.TryParse(input.text, out value))
+ float value;
+ if (float.TryParse(input.text, out value))
203
204
slider.value = value;
205
}
0 commit comments