Announcement

Collapse
No announcement yet.

Clamp a slider in UMG to 2 set values (Min and Max) so I can scale between them

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Clamp a slider in UMG to 2 set values (Min and Max) so I can scale between them

    If anyone can point me in the right direction that would be great.
    The values are -1 to 0.3
    and 0.4 to 35

    They are clamped in the material but that means some of the slider is unusable

    #2
    Just rescale the range of the slider when you read the value. The sliders are all 0..1, if you need that remapped to a different range, you do Min + (SliderValue * (Max - Min))

    Comment


      #3
      thanks for the answer!
      I have a work around now but will use change it because this looks easier!

      Comment


        #4
        Originally posted by Nick Darnell View Post
        Just rescale the range of the slider when you read the value. The sliders are all 0..1, if you need that remapped to a different range, you do Min + (SliderValue * (Max - Min))
        What do you exacly mean with "Min + (SliderValue * (Max - Min))"

        Hot to make "+" "*" etc.. is not a problem... but how to find the "min max" value? To multiply it later?
        How do i get the value 0 and 1 from the slider?

        Comment


          #5
          This is how I did it if anyone is interested

          Comment

          Working...
          X