I have a bit specific issue that arose when migrating all my menus from AC to Unity UI Prefab.
In my options menu, I have a Brightness slider linked to URP to change the game's brightness. The min and max values based on how the URP behaves are -2, 2 (outside of this, the brightness change is too extreme to make any sense).
Now, I don't want the handle of my brightness slider to scroll smoothly; rather, I want it to have a predefined number of steps (20), so it "snaps" to certain positions (mainly to the middle one, which represents the default value of brightness). In the prefab, the only way how to achieve this snapping effect is to check the "whole numbers box", but because of my min and max values it leaves me with only 5 steps. I would like there to be 20. If i set the min and max values to be -10 and 10, then the postprocessing brightness goes into extremes and makes no sense.
This was not an issue in the AC-based version, where a specific amount of steps can be simply set. Is there any way how i can achieve the same in the Unity UI Prefab version?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Set it to -10 and +10, and then scale the final result by 0.2 when applying it to the Brightness setting.
Thank you, I changed the volume weight in the Brightness prefab with URP, as you said, and it works as it should!