Hi,
I’m pretty new to Unreal UI stuff. I want to create a kind of camera simulation where you can manipulate several radial sliders in the UI to adjust camera settings like ISO, shutter speed, and focal length.
The sliders are working fine, but I need the values to update in discrete steps, not continuously. For example:
ISO should increase like: 100, 200, 400, 800…
Shutter speed should go like: 1/15, 1/30, 1/60, 1/125, 1/250…
For the Iso you can usually divide by a 100 truncate and multiply by a 100 to snap to increments of a 100. Are you planning on using the built in radial dials or something custom?
You may need to use a map range clamp if you need the output for the progress bar / radial bar to be in the 0-1 range
A quick snapping for a slider bar (should translate to a radial easily)
For now, I’ll just use the built-in radial slider.
I tried to implement snapping for the radial slider, but it didn’t work. However, I managed to get the values to snap. I’m not sure if it’s the best approach, but it works. This also adjusts the film grain based on the ISO value.
Now, I need something similar for the shutter speed, but this doesn’t simply double each time. I need to store the separate values somehow:
1, 2, 4, 8, 15, 30, 60, 125, 250, 500, 1000, 2000, 4000, 8000