discrete slider bug (unity2017, materialui 1.1.7) : cannot set a value at start

0 votes
asked Jul 31, 2017 in Issue by freddg (120 points)

Hello

open your scene 08

add these line in exemple 08 : 

    [SerializeField] private Slider Test;

 

    void Awake()

{

OnSliderValueChanged();

   Test.value = 1f;

}

the slider is not correctly set on screen, see image.bug

 

In my dialog, when I set a value at start : the graphics are not right :

did i miss something ? 

commented Aug 6, 2017 by ts6 (120 points)
I am having the same issue.  When I set the slider value in code, the correct value shows on the smaller discrete dots.  However, the larger selector dot (which the popup shows from) will display on the value originally set in the inspector.
commented Aug 31, 2017 by admin (31,720 points)
Thanks for letting us know, we'll add that to our list of things to fix :)

~ Declan.
commented Sep 17, 2017 by anonymous
hi

would it be possible to get a quick fix or workaround ? it s very annoying for us...

thanks in advance

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Welcome to MaterialUI support! Ask us anything :)
...