When calling regular_slider.SetMaxValue(Value:float) and regular_slider.SetValue(Value:float) without a sleep in between the UI doesn’t update correctly, is this intended?
Example:
Currently slider has a max value of: 50 and a current value of 0.
Player performs actions and now we want to update its values to:
MaxValue: 100
CurrentValue: 60
Code:
regular_slider.SetMaxValue(MaxValue)
regular_slider.SetValue(CurrentValue)
Expected: slider updates and shows the slider 60% completed. what happens is, texts and value is set to 60, but it shows 100% completion.
regular_slider.SetMaxValue(MaxValue)
Sleep(0.2)
regular_slider.SetValue(CurrentValue)
Behaves as expected showing new values and 60% completed