Hello, i am currently adding a jump animation to my character. And i need to share a variable between my character blueprint and my animation blueprint. How?
Why do you need to share the variable (create the variable in your character BP)? Instead you could get the anim instance, cast it to your animation BP, drag off “As AnimBP” and just set the variable that way.
I assume the variable you have inside the character bp is called IsJumping
Create a variable inside animBP called IsJumping too,
Then go to the event graph, and from the try to get pawn owner drag off a blue pin and Cast to the Player character, and from the as player character drag off the pin and type in Get IsJumping
Now right click and type in SET ISJUMPING, connect the two red pins from the is jumping variables, and then connect the exec pins.
I will send a screenshot of this when I get home, if you’d like.