- Home /
Reverse slider min/max values
I want to create a slider like the below example, with values above 50 increasing the right/green/"good" slider and values below 50 increasing a left/red/"bad" slider.
I created two sliders, and it works the way I want with one crucial exception: the left/bad portion of the slider is backwards. I set the Min Value to 0 and the Max Value to 50, but I actually need the Max Value to be 0 and the Min Value to be 50 so the bad/left slider fills as the value reaches zero.
Is there a simple way to reverse the Min/Max Values for a slider? By default it doesn't let you set a Max Value that is lower than the Min Value. No matter how I rotate the slider, and no matter what direction it fills in, the value 50 is still full when it should be zero.
Thank you so much!
Your answer
![](https://koobas.hobune.stream/wayback/20220613045221im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Crafting System - How to use a slider to show progress 0 Answers
Interact with Overlapping UI Simultaneously 0 Answers
Make Inputfield with invisible slide controll? 0 Answers
Change image in UI depending on the value of the slider 0 Answers
Make a slider into a gauge with variables from script? 0 Answers