# UMG slider scale to variable ?

**URL:** <https://forums.unrealengine.com/t/umg-slider-scale-to-variable/292286>\
**Category:** UI\
**Tags:** interface, variables, unreal-engine, question, UMG\
**Created:** [August 28, 2014, 8:37pm UTC](https://forums.unrealengine.com/t/umg-slider-scale-to-variable/292286 "2014-08-28T20:37:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DubTab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DubTab](https://forums.unrealengine.com/u/DubTab)\
**Post date:** [August 28, 2014, 8:37pm UTC](https://forums.unrealengine.com/t/umg-slider-scale-to-variable/292286/1 "2014-08-28T20:37:33Z")

</div>

Hey guys,

I get in to a problem with the ui slider. I dont get it to binding and scaling the slider to a variable i set.  
The current output ist 0.0 - 1.0 but i want a scaling from 0 - 24.0 setting this in my float variable.  
I have set the slider range and value and binding it to my slider but nothing appears to change.

Thanks and sorry for my english 😉

---

<div class="post-metadata">

**Author:** ![Ixiguis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ixiguis](https://forums.unrealengine.com/u/Ixiguis)\
**Post date:** [September 20, 2014, 5:50pm UTC](https://forums.unrealengine.com/t/umg-slider-scale-to-variable/292286/2 "2014-09-20T17:50:19Z")

</div>

It’s not possible to change the values on the slider itself. It’s always in the range 0 to 1. Just multiply the value it returns (in the blueprint, probably OnValueChanged event) by 24 to get the value you want.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_17ec24a01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_17ec24a01](https://forums.unrealengine.com/u/anonymous_user_17ec24a01)\
**Post date:** [January 24, 2015, 2:43am UTC](https://forums.unrealengine.com/t/umg-slider-scale-to-variable/292286/3 "2015-01-24T02:43:48Z")

</div>

If anyone else comes across this problem, there’s a really cool node called MapRange that will do all the math for you.

---

<div class="post-metadata">

**Author:** ![DanielOrchard](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/danielorchard/32/636987_2.png) [@DanielOrchard](https://forums.unrealengine.com/u/DanielOrchard)\
**Post date:** [June 16, 2015, 3:11pm UTC](https://forums.unrealengine.com/t/umg-slider-scale-to-variable/292286/4 "2015-06-16T15:11:02Z")

</div>

Thank you so much, mapRange was an awesome suggestion that I wouldn’t have thought of.
