# How to access blueprint vars in c++?

**URL:** <https://forums.unrealengine.com/t/how-to-access-blueprint-vars-in-c/275331>\
**Category:** C++\
**Tags:** unreal-engine, CPP, question\
**Created:** [March 11, 2014, 2:12am UTC](https://forums.unrealengine.com/t/how-to-access-blueprint-vars-in-c/275331 "2014-03-11T02:12:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ue4-archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ue4-archive](https://forums.unrealengine.com/u/ue4-archive)\
**Post date:** [March 11, 2014, 2:12am UTC](https://forums.unrealengine.com/t/how-to-access-blueprint-vars-in-c/275331/2 "2014-03-11T02:12:07Z")

</div>

There are 2 options:

1. The simplest is to create a C++ base class, add the variables to that, and then create the BP derived from that class. That makes them very easy to access from C++. You will need to mark the variables in the header like this:

2. It is possible to find a property by name and then access its value like this:

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-access-blueprint-vars-in-c/275331)._
