Hello, I want to create a battle pass system with different rewards depending on our player level. The thresholds with rewards for level gained are not proportional. For example, the first reward is for level 5, the second for level 8, the third for level 15. I have set the maximum value of the slider to 50 but for the value 8 there is no arrow from above the second arrow, but when value is 12. And my question is how to make the slider be above the second arrow when level 8, or above the third arrow when level 15, or somewhere in the middle of the second and third arrow when level 11?
Just use some kind of lookup table. Code (csharp): int[] Levels = new int[] { 1, 5, 8, 15, 50, 100, // etc }; You can code it up as a list of intervals mapping the linear Slider input to your reward amounts. Alternately you can code it as preset ScriptableObjects that you slot into an array in the inspector.