Is there any way to get bool variables from an Animation Blueprint to a Character Blueprint?

Good day, developers,

I need to get my bool variables (“IsLadder, IsClimbing”) from an Animation Blueprint to my Character Blueprint. I tried “Cast to” but it didn’t work out. Will you help me to achieve that?

Thank you for your answers.
282736-

Yes, Animation Blueprint is normal class that create normal object like any other and you can access it as anything else. Animation Blueprint is Blueprint of animation instance, so you can get it using this node:

Then cast it to the class of your animation blueprint and then you can access functions and properties in your animation blueprint

Thank you for the answer, but I have tried it with “Get Anim instance” before, without success. Do you mean like that? It is in “Cast Failed” mode.

You sure that you set proper animation instance/blueprint class on it?

Definetly, I also used my anim class in that mesh variable, still “Cast failed”.