Get current state or current animation in character blueprint

Is there a way to get the current state of a given state machine in a character blueprint? Or another way to get information in a character blueprint which animation is playing or which tranistion is happening in the anim blueprint?

2 Likes

Hey, did you ever find a solution for this?

Thank you!

Just came across this browsing the forums. Here is a place you can set events on state changes.

Then you can go the event graph of your anim bp and get these events.


Hope that helps

4 Likes

Anyone find a better solution to this? Maybe a Weight value from 0 to 1 for the state?

Found this but i dont know how to get the context and the node


Here is an example of how that can be set up:

In your AnimGraph:

In your function (click the magnifying glass icon to open):

Please note that this is not meant as an example of what you should do.

1 Like

As for what you actually should do: Use these state events:

1 Like