Setting Values in Fixed Steps (Unreal UI)

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…

How can I implement this?

Thanks in advance!

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

How can I do this?

  • create an array with that many :point_up_2: elements:

  • config the slider:

1 Like

Thank you, this works perfectly, also with the slider moving in steps.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.