- Home /
Slider with negative and positive values
I'd like to make a slider that can show negative and positive values, zero value must be the middle and default value. A kind of rudder.. I'll attach a screenshot with the goal i want to achieve. I tought about using a sliders for my purpouse but i'm unable to set it up. Neither i found some tutorials that can help me.
Which tool could I use to achieve my goal instead of the slider? Otherwise how could I set the slider to have the effect of the image? Thanks for your time
Answer by xxmariofer · Feb 21, 2019 at 12:55 PM
use 2 sliders, one rotated 180 degrees for simulating the negative part. here is a unity oficial tutorial
as @Defetysta pointed, there is no need to rotate the object just change the slider property Direction.
Why rotate tho, you can change the way it fills in the inspector
Your answer
![](https://koobas.hobune.stream/wayback/20220612192143im_/https://answers.unity.com/themes/thub/images/avi.jpg)