# How do I get the variables out of these actors?

**URL:** <https://forums.unrealengine.com/t/how-do-i-get-the-variables-out-of-these-actors/455488>\
**Category:** Blueprint\
**Tags:** add-variable, unreal-engine, UE4, Blueprint, question, actor-class\
**Created:** [September 17, 2019, 5:31pm UTC](https://forums.unrealengine.com/t/how-do-i-get-the-variables-out-of-these-actors/455488 "2019-09-17T17:31:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![EdBennett](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EdBennett](https://forums.unrealengine.com/u/EdBennett)\
**Post date:** [September 17, 2019, 5:31pm UTC](https://forums.unrealengine.com/t/how-do-i-get-the-variables-out-of-these-actors/455488/1 "2019-09-17T17:31:05Z")

</div>

Hi I have this widget blueprint which search the level for all objects of the class WallMarker. I was hoping to read the variable from the actors and then do this based on the variables. however I cannot seem to access the variable in the usual way.

this is what the code section looks like.

 ![287594-var.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/2/c/12cbaf83855dbf63e54197f7eff8f2be2449c6f8.png)

any help gratefully received.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 17, 2019, 6:00pm UTC](https://forums.unrealengine.com/t/how-do-i-get-the-variables-out-of-these-actors/455488/2 "2019-09-17T18:00:29Z")

</div>

You should just be able to say ‘get …’ ( variable name ).

What happens when you pull the pin and type part of your variable name?

---

<div class="post-metadata">

**Author:** ![EdBennett](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EdBennett](https://forums.unrealengine.com/u/EdBennett)\
**Post date:** [September 17, 2019, 7:36pm UTC](https://forums.unrealengine.com/t/how-do-i-get-the-variables-out-of-these-actors/455488/3 "2019-09-17T19:36:57Z")

</div>

It doesn’t that where I’m having the trouble.

---

<div class="post-metadata">

**Author:** ![JagMaker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JagMaker](https://forums.unrealengine.com/u/JagMaker)\
**Post date:** [September 17, 2019, 7:50pm UTC](https://forums.unrealengine.com/t/how-do-i-get-the-variables-out-of-these-actors/455488/4 "2019-09-17T19:50:03Z")

</div>

“GetClass” - “GetClassDefaults”

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 17, 2019, 7:52pm UTC](https://forums.unrealengine.com/t/how-do-i-get-the-variables-out-of-these-actors/455488/5 "2019-09-17T19:52:30Z")

</div>

That’s weird cause I just did exactly this, in a widget, and could see all fields on the actor…

---

<div class="post-metadata">

**Author:** ![BlueMind\_Studio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlueMind\_Studio](https://forums.unrealengine.com/u/BlueMind_Studio)\
**Post date:** [September 18, 2019, 4:56am UTC](https://forums.unrealengine.com/t/how-do-i-get-the-variables-out-of-these-actors/455488/6 "2019-09-18T04:56:30Z")

</div>

ArrayEllement-\>cast to Wallmarker-\>access your variable
