Use of Animstategraph

After reading the tutorial on Animstategraph.I still don’t know how to implement attack animation.

Hey @hello,

What exactly have you tried and what are you having trouble with?

I added an attack attribute to the animstategraph.It is set that when it is true, it will move from any state to attack state.Now how can play completion be set to false?

What do you mean by play completion?

So I assume that this is working? Or is this the aspect you need help with?

I think what I need is to use AnimEvents in AnimStateGraph.But I don’t know how to achieve it.

Perhaps this could help - Anim Events | Learn PlayCanvas ?