# 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:** 4

<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/4 "2014-03-11T02:12:08Z")

</div>

UFloatProperty\* FloatProp = FindField(Object-\>GetClass(), PropertyName);  
if(FloatProp != NULL)  
{  
float\* FloatPtr = FloatProp-\>GetPropertyValue\_InContainer(Object);  
if(FloatPtr != NULL)  
{  
float MyFloat = \*FloatPtr;  
}  
}

I got this working!

I am using

```
SetPropertyValue_InContainer

```

to update my foot placement system

**Is there an equivalent for UFloatProperty for vectors?**

I tried UVectorProperty to no avail 🙂

**and where is the .h file for UFloatProperty?**

I bet I can find lots of answers there if I know where to look in the header files

🙂

Thanks!

---

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