# So how do i make my Animation BP inherit from character actor?

**URL:** <https://forums.unrealengine.com/t/so-how-do-i-make-my-animation-bp-inherit-from-character-actor/475618>\
**Category:** Character & Animation\
**Tags:** casting, unreal-engine, cast, Blueprint, question\
**Created:** [December 8, 2020, 1:29pm UTC](https://forums.unrealengine.com/t/so-how-do-i-make-my-animation-bp-inherit-from-character-actor/475618 "2020-12-08T13:29:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MoistimusPrime](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MoistimusPrime](https://forums.unrealengine.com/u/MoistimusPrime)\
**Post date:** [December 8, 2020, 1:29pm UTC](https://forums.unrealengine.com/t/so-how-do-i-make-my-animation-bp-inherit-from-character-actor/475618/1 "2020-12-08T13:29:15Z")

</div>

I am relatively new to ue4 and I just started to cast variables between BP but I am having trouble when trying to change variable in my Anim BP from my Character BP. This is the error message that I get. How do fix this?

---

<div class="post-metadata">

**Author:** ![Lardo\_Deepdelver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lardo\_Deepdelver](https://forums.unrealengine.com/u/Lardo_Deepdelver)\
**Post date:** [December 8, 2020, 2:14pm UTC](https://forums.unrealengine.com/t/so-how-do-i-make-my-animation-bp-inherit-from-character-actor/475618/2 "2020-12-08T14:14:43Z")

</div>

You need to get the animation instance of the character you are on, the animation instance is owned by the skeletal mesh, named only mesh in the character

 ![324335-castaniminstancefromcharacter.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/6/d/f6d8c3979db3630280eaef0dca2b31873b110b31.jpeg)

**Cast to ThirdPerson\_AnimBP** is to be replaced with your animation bp class

casting self to anything is normally not necessary because it is already the most specific version of itself and it can be used as all its less specific versions.

e.g.  
If you are on BP\_MyCharacter a blueprint inheriting from Character you can use self as

BP\_MyCharacter,  
Character,  
Pawn,  
Actor

without needing to cast

---

<div class="post-metadata">

**Author:** ![MoistimusPrime](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MoistimusPrime](https://forums.unrealengine.com/u/MoistimusPrime)\
**Post date:** [December 8, 2020, 2:33pm UTC](https://forums.unrealengine.com/t/so-how-do-i-make-my-animation-bp-inherit-from-character-actor/475618/3 "2020-12-08T14:33:38Z")

</div>

Thank you, I’ve been searching for this for a while now. Didn’t expect the solution to be so simple.

---

<div class="post-metadata">

**Author:** ![Lardo\_Deepdelver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lardo\_Deepdelver](https://forums.unrealengine.com/u/Lardo_Deepdelver)\
**Post date:** [December 8, 2020, 2:42pm UTC](https://forums.unrealengine.com/t/so-how-do-i-make-my-animation-bp-inherit-from-character-actor/475618/4 "2020-12-08T14:42:40Z")

</div>

happy to help, if it works it would be greatly appreciated if you could accept the answer

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [December 10, 2020, 8:50pm UTC](https://forums.unrealengine.com/t/so-how-do-i-make-my-animation-bp-inherit-from-character-actor/475618/5 "2020-12-10T20:50:00Z")

</div>

Hi there! **Animation BP** And its PawnOwner ( **Character BP** ) - are two different classes, so you cant Cast **Animation BP** to **Character BP** and **Character BP** to **Animation BP**. Usually, people configure data flow in the next manner:

- Add some variable in your **Character BP**
- If added variable can influence on **Animation BP** then add the same variable in **Animation BP** and in _Event Blueprint Update Animation_ set the value for it from the one from **Character BP**
- Use variable of **Animation BP** in transition conditions, Blend Spaces, etc

As you can see - in this case, logic flows in one direction, so you dont get logic cycles and other difficulties.

---

<div class="post-metadata">

**Author:** ![Zarrar2802](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zarrar2802/32/710746_2.png) [@Zarrar2802](https://forums.unrealengine.com/u/Zarrar2802)\
**Post date:** [November 3, 2021, 6:28pm UTC](https://forums.unrealengine.com/t/so-how-do-i-make-my-animation-bp-inherit-from-character-actor/475618/6 "2021-11-03T18:28:07Z")

</div>

Thank you livesaver.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [April 2, 2024, 4:40pm UTC](https://forums.unrealengine.com/t/so-how-do-i-make-my-animation-bp-inherit-from-character-actor/475618/7 "2024-04-02T16:40:40Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
