How to Play An Animation In Lua.

So after you have setup your animations and blend trees and stuff in the animation editor and exported all your anim graphs and stuff.

Note if you are not sure on how to do that part in the animation editor this is a good tutorial:

So after all that is done. You setup your character for animation in the editor theses are the components you need. The Actor and the Animation Graph.


So after you have added theses components you need to set you Anim graph and your motion set

in you Anim Graph Component.


After you have set those parameters now add a lua component to you object. Keep in mind that the parameter name should match in your code for it to work.


Ok for you to play an animation in code this is an example of how it should look in lua for it to work.