Unity Issue Tracker - InputField of UIToolkit Slider does not update bound property
Fixed
UUM-36298
InputField of UIToolkit Slider does not update bound property
Unity: UI Toolkit Controls
Fixed
2023.2.X
2023.2.0a11 onwards
2023.1.X
2023.1.0b14 onwards
2022.3.X
Won't Fix
2022.2.X
2022.2.17f1 onwards
Fixed the slider's value retention when entering a value into the slider's text field.
Fixed the slider's value retention when entering a value into the slider's text field.
Fixed the slider's value retention when entering a value into the slider's text field.
Closing 2022.2 backport in favor of 2022.3, as the latter one takes precedence.
Reproduction steps:
1. Open the attached “SliderBugTest.zip” project
2. Open the “Assets/Scenes/SampleScene.unity” Scene
3. Select the "EXAMPLE" GameObject in the Hierarchy window
4. Enter the value “5” in the Text Input Field next to the Slider under the “New Behaviour Script” Component in the Inspector window
5. Switch the Inspector window to the Debug Mode
6. Observe the “Foo Bar” Value under the “New Behaviour Script” Component
Expected result: The “Foo Bar” Value retains the value from the Text Input Field, which is 5
Actual result: The “Foo Bar” Value is 0