# Get variable by name (string)

**URL:** <https://forums.unrealengine.com/t/get-variable-by-name-string/398065>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE4, CPP, Blueprint, question\
**Created:** [July 29, 2017, 7:11pm UTC](https://forums.unrealengine.com/t/get-variable-by-name-string/398065 "2017-07-29T19:11:01Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Fjellgnu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fjellgnu](https://forums.unrealengine.com/u/Fjellgnu)\
**Post date:** [August 12, 2017, 2:53pm UTC](https://forums.unrealengine.com/t/get-variable-by-name-string/398065/10 "2017-08-12T14:53:45Z")

</div>

No, I don’t think so. That is after all the point of using the references. They would be pointless if you could just access the variable directly.

What you are asking for would be global variables. The “cardinal sin” of programming because that gets messy real quick! Besides I don’t think you are allowed to make those in blueprint.

---

_[View the full topic](https://forums.unrealengine.com/t/get-variable-by-name-string/398065)._
