Slider formatting issues

0 votes
asked Dec 1, 2016 in Help by clairen (150 points)

I'm using the slider component but I do not need the left or right content so I have removed these from my gameobject. I also have no need at this stage for the popup as I'll be placing another visual clue elsewhere. The slider looks fine at design time with the Handle in the expected place, however when I run my scene the handle is displaced as shown.

Design time (handle looks fine):

Runtime:

I'm pretty new to Unity so any assistance or suggestions would be very welcome.

Many thanks in advance 

1 Answer

0 votes
answered Dec 1, 2016 by admin (31,720 points)
selected Dec 1, 2016 by clairen
 
Best answer
Hey!

First, instead of creating your slider with left and right content, why don't you directly create the slider without any of that from the MaterialUI menu?
Just select MaterialUI -> Slider -> Continuous -> Simple.

Then, if you don't want the popup. Just select your slider, and in the Inspector view, look for the MaterialInputField component. Then just untoggle the "Has Popup" field and you should be ready :)

We also made a video about sliders right here: https://www.youtube.com/watch?v=G4osdlSrLJk

Please try this and tell us if you still have issues!
Have a great day.

~ Yohan
commented Dec 1, 2016 by clairen (150 points)
Thanks so much for that Yohan, I did as you suggested and all appears to be well now. My fault for trying the use the Prefab directly from Project rather than use the menu options. Lesson learned :)
commented Dec 1, 2016 by admin (31,720 points)
Glad we could help!

You should watch some of our tutorial videos on our channel to have a better understanding on how to use MaterialUI :) https://www.youtube.com/playlist?list=PLCsZSWJN1S-DEBcAjIh5uD440oxwm8Y8k

~ Yohan
Welcome to MaterialUI support! Ask us anything :)
...