# BlueprintNativeEvent function can't access blueprint variables?

**URL:** <https://forums.unrealengine.com/t/blueprintnativeevent-function-cant-access-blueprint-variables/1941022>\
**Category:** C++\
**Tags:** unreal-engine, question\
**Created:** [July 17, 2024, 7:23pm UTC](https://forums.unrealengine.com/t/blueprintnativeevent-function-cant-access-blueprint-variables/1941022 "2024-07-17T19:23:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RecourseDesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/recoursedesign/32/1194503_2.png) [@RecourseDesign](https://forums.unrealengine.com/u/RecourseDesign)\
**Post date:** [July 17, 2024, 7:32pm UTC](https://forums.unrealengine.com/t/blueprintnativeevent-function-cant-access-blueprint-variables/1941022/2 "2024-07-17T19:32:12Z")

</div>

Hi Sicko\_0

Where-ever possible, move your variables into the C++ class, otherwise you can crawl through the BP dictionary to find them like this post explains:

> [@How to access blueprint vars in c++?](https://forums.unrealengine.com/t/how-to-access-blueprint-vars-in-c/275331/4):
>
> 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 slight_smile and where is the .h file for UFloatProperty? I bet I can find lot…

---

_[View the full topic](https://forums.unrealengine.com/t/blueprintnativeevent-function-cant-access-blueprint-variables/1941022)._
