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?
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.
When you click +
to add OnValueChanged
, then you will get node that gets executed every time value of the slider is changed.
After that, just update the variables that you need to.
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
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.
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.
OK, I understand. Just set the variable “Target” and you should be good to go.
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.
i cant connect it, cuz there is nothing with this obj type
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.