# Problem While Getting a Reference to a C++ Class

**URL:** <https://forums.unrealengine.com/t/problem-while-getting-a-reference-to-a-c-class/67718>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [June 29, 2016, 12:42am UTC](https://forums.unrealengine.com/t/problem-while-getting-a-reference-to-a-c-class/67718 "2016-06-29T00:42:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![XenonicDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XenonicDev](https://forums.unrealengine.com/u/XenonicDev)\
**Post date:** [June 29, 2016, 12:42am UTC](https://forums.unrealengine.com/t/problem-while-getting-a-reference-to-a-c-class/67718/1 "2016-06-29T00:42:34Z")

</div>

Hello,

I’ve spent the last 2 days working on a complex FSM for controlling a large amount of animations for my character. The problem I’m having is getting the UPROPERTY booleans controlled in my characters C++ class to affect the animation blueprint. He is a screenshot of what I am trying to do:

 ![Capture1.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/f/ef2877c39640ece20e6890bc53a44071824d1366.png)

That obviously does not work because the compiler wants a reference to my character class. So I tried:

 ![Capture2.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/7/67fc72a9950ce8ae634aebbfe09bf1858f569bd7.png)

That compiled, but threw errors during runtime. What can I do to properly get a reference to my character class and read the variables from there?

Thank you in advance.
