# Get Variable from c++ actor to a Blueprintanimation

**URL:** <https://forums.unrealengine.com/t/get-variable-from-c-actor-to-a-blueprintanimation/468879>\
**Category:** Character & Animation\
**Tags:** variables-communicat, unreal-engine, Scripting, question\
**Created:** [July 29, 2020, 11:22pm UTC](https://forums.unrealengine.com/t/get-variable-from-c-actor-to-a-blueprintanimation/468879 "2020-07-29T23:22:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon15805799](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon15805799](https://forums.unrealengine.com/u/anon15805799)\
**Post date:** [July 29, 2020, 11:22pm UTC](https://forums.unrealengine.com/t/get-variable-from-c-actor-to-a-blueprintanimation/468879/1 "2020-07-29T23:22:21Z")

</div>

I have a problem to get a variable from a BP\_Character, that is inherit from a cpp\_Character, to the animationBlueprint. Its pretty easy but i get all times this errors and i cant create a c++ animation file in my knowledge.

---

<div class="post-metadata">

**Author:** ![knapeczadam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@knapeczadam](https://forums.unrealengine.com/u/knapeczadam)\
**Post date:** [July 30, 2020, 9:38pm UTC](https://forums.unrealengine.com/t/get-variable-from-c-actor-to-a-blueprintanimation/468879/2 "2020-07-30T21:38:00Z")

</div>

Variable from cpp or variable from bp?

> **[How to access blueprint vars in c++?](https://forums.unrealengine.com/questions/2145/how-to-access-blueprint-vars-in-c.html)**
>
> How can I acces vars I've created in my Character's blueprint in the c++ character class code?

`FindField` is deprecated since 4.25 so use `FindFProperty` instead.  
Everything you need is located in `UnrealType.h` (global functions, bp types)

---

<div class="post-metadata">

**Author:** ![anon15805799](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon15805799](https://forums.unrealengine.com/u/anon15805799)\
**Post date:** [July 31, 2020, 10:06am UTC](https://forums.unrealengine.com/t/get-variable-from-c-actor-to-a-blueprintanimation/468879/3 "2020-07-31T10:06:59Z")

</div>

i want a variable from c++ and use it in bp

The BP\_shootercharacter\_reference is the problem

---

<div class="post-metadata">

**Author:** ![knapeczadam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@knapeczadam](https://forums.unrealengine.com/u/knapeczadam)\
**Post date:** [July 31, 2020, 1:39pm UTC](https://forums.unrealengine.com/t/get-variable-from-c-actor-to-a-blueprintanimation/468879/4 "2020-07-31T13:39:04Z")

</div>

Is JogValue a UPROPERTY and has at least BlueprintReadOnly specifier?

---

<div class="post-metadata">

**Author:** ![anon15805799](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon15805799](https://forums.unrealengine.com/u/anon15805799)\
**Post date:** [July 31, 2020, 4:28pm UTC](https://forums.unrealengine.com/t/get-variable-from-c-actor-to-a-blueprintanimation/468879/5 "2020-07-31T16:28:56Z")

</div>

It was. But void Jog() wasn´t a UFUNCTION with BlueprintReadOnly. thanks dude
