Guys, I got a similar problem but the answer from this topic doesn’t work for my situation and i really struggled a lot to find this little piece of missing info…
So, everything like in the topic’s question BUT!
On the picture above (and actually in the every single corner of the web) we got everything working fine, except one little thing - What if i want to set this Anim Class for a Set Anim Instance Node Dynamically???
I mean this dark blue/purple input of the Node.
I feel that it should be easy, you know… but… i really tried so many ways to set it, and all without a success.
My imaginary and perfect solution is:
Do all exactly same as on the picture but provide the reference to this input from the default variable of a BP actor class which is not spawned on a scene (i don’t want if possible to keep every single file on a scene just for reference purpose).
So my question is simple. How ?
Omg guys. After i created this post I switched into a really agressive mode of debugging and found very common mistake regarding the wrong initial data.
There are actualy tons of ways how to set this class. i realized that was trying to do the right stuff hundred of times, but i didn’t accept these as far as it wasn’t work for me.
So,** to assign it from variable, we need just to make a public variable of Anim Instance “Class” under desired BP. Assign the required AnimBP as default and use it via Get Class Defaults node as the input param for this Anim Instance Class node.**
Hope that it will be useful for someone as insurance that this is a working way.
Because i was struggling really a lot without confidence that it should be like this.