Slider label not updating

I have “ShowInputField” on my slider so I can get a numerical representation of my slider. The number updates as expected if I slide the slider with the mouse. However, when I set the value, the slider position updates, but the numerical label does not.

sliderElement.value = 20; // Updates slider position, but not label

It seems like the label is only listening to the user’s movement of the slider, as opposed to the changing of the value of the slider.

sliderElement.value = 20;
sliderElement.showInputField = false;
sliderElement.showInputField = true;

Currently, this workaround will force an update, but I feel like it would be better if the label would update when the slider value updates.

1 Like

This looks like a bug. Do you mind reporting it via Unity’s built-in Bug Reporter?