# I need to send value from slider to variable

**URL:** <https://forums.unrealengine.com/t/i-need-to-send-value-from-slider-to-variable/1248717>\
**Category:** UI\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [August 2, 2023, 8:08pm UTC](https://forums.unrealengine.com/t/i-need-to-send-value-from-slider-to-variable/1248717 "2023-08-02T20:08:06Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArtemKhadris](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArtemKhadris](https://forums.unrealengine.com/u/ArtemKhadris)\
**Post date:** [August 2, 2023, 8:08pm UTC](https://forums.unrealengine.com/t/i-need-to-send-value-from-slider-to-variable/1248717/1 "2023-08-02T20:08:06Z")

</div>

I am creating a character editor (height, size of eyes, ears, etc.). Moved all animations to pose assets. In anim blue print I created maps, tied them to variables. Now changing any variable changes the appearance of the character. Did as in the lesson from YouTube, the link is below. Now I need to make sure that the sliders that are in the gui are tied to these variables, so that dragging the slider changes a specific variable and, accordingly, the character (height, ears, eyes, etc.). But I don’t know how to do it. Are there any articles/videos showing how to do this? Or maybe you know how to help me?

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/f/03fd44d189ffc4803a219feeda33e8e5045130b8.jpeg "[Unreal Engine] Character Creation System. Morphing Tutorial") ](https://www.youtube.com/watch?v=qfgd4KJHZxc)

---

<div class="post-metadata">

**Author:** ![Bojann](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bojann/32/906560_2.png) [@Bojann](https://forums.unrealengine.com/u/Bojann)\
**Post date:** [August 2, 2023, 10:03pm UTC](https://forums.unrealengine.com/t/i-need-to-send-value-from-slider-to-variable/1248717/2 "2023-08-02T22:03:55Z")

</div>

Every slider has a Event Dispatcher `OnValueChanged`. Use it, and update the variables that you need. Also make sure you mark your slider as a Variable. Otherwise callback will not show.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/a/7/0a7ed7c80cd4616792a61f80eb3a4be0a8bb8be6.png)

When you click `+` to add `OnValueChanged`, then you will get node that gets executed every time value of the slider is changed.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/2/b12b899bb30ce160a1c2c7b9d02b4a33d5768e29.png)

After that, just update the variables that you need to.

---

<div class="post-metadata">

**Author:** ![ArtemKhadris](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArtemKhadris](https://forums.unrealengine.com/u/ArtemKhadris)\
**Post date:** [August 3, 2023, 12:09am UTC](https://forums.unrealengine.com/t/i-need-to-send-value-from-slider-to-variable/1248717/3 "2023-08-03T00:09:06Z")

</div>

when i set a target input as a variable, there is an error, that target variable is none, if i do not input a target there is another error

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/7/e/47e6384bf3ba6619d69f5aa36d3303eb4c438969.png)

---

<div class="post-metadata">

**Author:** ![Bojann](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bojann/32/906560_2.png) [@Bojann](https://forums.unrealengine.com/u/Bojann)\
**Post date:** [August 3, 2023, 5:45am UTC](https://forums.unrealengine.com/t/i-need-to-send-value-from-slider-to-variable/1248717/4 "2023-08-03T05:45:40Z")

</div>

As shown in the error message, you havent set the `Target` object. You just defined it to be correct object, and that is good, but you never set it. Go to `BeginPlay` (I assume) and set the object properly. Then you can use it. Just right click and type `Set Target`, and make sure you give it proper object reference.

I tried briefly going through the video, but it’s too long to watch it all.

---

<div class="post-metadata">

**Author:** ![ArtemKhadris](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArtemKhadris](https://forums.unrealengine.com/u/ArtemKhadris)\
**Post date:** [August 3, 2023, 11:51am UTC](https://forums.unrealengine.com/t/i-need-to-send-value-from-slider-to-variable/1248717/5 "2023-08-03T11:51:43Z")

</div>

in the video, a lot of unnecessary. The main thing is that there is a character and a set of one-frame animations, and the character editor is done through these animations. An asset of poses is created, an animated blue print, there are sliders for changing the body and all that. But he does it for a very long time and not very skillfully, the whole point is there in 5-10 minutes, but finding it is not so easy.

---

<div class="post-metadata">

**Author:** ![Bojann](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bojann/32/906560_2.png) [@Bojann](https://forums.unrealengine.com/u/Bojann)\
**Post date:** [August 3, 2023, 11:53am UTC](https://forums.unrealengine.com/t/i-need-to-send-value-from-slider-to-variable/1248717/6 "2023-08-03T11:53:07Z")

</div>

OK, I understand. Just set the variable “Target” and you should be good to go.

---

<div class="post-metadata">

**Author:** ![ArtemKhadris](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArtemKhadris](https://forums.unrealengine.com/u/ArtemKhadris)\
**Post date:** [August 3, 2023, 12:36pm UTC](https://forums.unrealengine.com/t/i-need-to-send-value-from-slider-to-variable/1248717/7 "2023-08-03T12:36:47Z")

</div>

like that? cuz i cant even select asset, and there is still error

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/4/a/b4a65d7210eeaabc18189ca9f8543651ebb7453a.png)

---

<div class="post-metadata">

**Author:** ![Bojann](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bojann/32/906560_2.png) [@Bojann](https://forums.unrealengine.com/u/Bojann)\
**Post date:** [August 3, 2023, 12:38pm UTC](https://forums.unrealengine.com/t/i-need-to-send-value-from-slider-to-variable/1248717/8 "2023-08-03T12:38:29Z")

</div>

You need object reference and connect it to the “Target” circle in the “Set rectangle”. Probably that object reference is the metahuman model.

I don’t know the project you made, but I assume that’s it.

---

<div class="post-metadata">

**Author:** ![ArtemKhadris](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArtemKhadris](https://forums.unrealengine.com/u/ArtemKhadris)\
**Post date:** [August 3, 2023, 1:00pm UTC](https://forums.unrealengine.com/t/i-need-to-send-value-from-slider-to-variable/1248717/9 "2023-08-03T13:00:41Z")

</div>

i cant connect it, cuz there is nothing with this obj type  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/c/9/dc99d00dfe871b64105bca7f095294d36ea4c7f6.png)

---

<div class="post-metadata">

**Author:** ![Bojann](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bojann/32/906560_2.png) [@Bojann](https://forums.unrealengine.com/u/Bojann)\
**Post date:** [August 3, 2023, 1:04pm UTC](https://forums.unrealengine.com/t/i-need-to-send-value-from-slider-to-variable/1248717/10 "2023-08-03T13:04:11Z")

</div>

I meant this one. But this is programming / UE basics. I would strongly suggest you to look at some basic tutorials before going to this. Since it seems like you are new to this one (which is nothing bad, of course). In other words, you are building a house starting from Windows.  
So go step by step in order to better understand how to assign variable here.

Learn what are variables, how they are signed… etc.

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/a/c4a377a89dbac6ff50d3fca22bc3dc9ada26d51d.png)
