# How do i go about retrieving newly set variable from a UI's child buttons and use it in other bp

**URL:** <https://forums.unrealengine.com/t/how-do-i-go-about-retrieving-newly-set-variable-from-a-uis-child-buttons-and-use-it-in-other-bp/93656>\
**Category:** ARK: Survival Evolved\
**Tags:** unreal-engine, Ark:-Survival-Evolved, Modding\
**Created:** [June 3, 2017, 8:23pm UTC](https://forums.unrealengine.com/t/how-do-i-go-about-retrieving-newly-set-variable-from-a-uis-child-buttons-and-use-it-in-other-bp/93656 "2017-06-03T20:23:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![WereAsian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WereAsian](https://forums.unrealengine.com/u/WereAsian)\
**Post date:** [June 3, 2017, 8:23pm UTC](https://forums.unrealengine.com/t/how-do-i-go-about-retrieving-newly-set-variable-from-a-uis-child-buttons-and-use-it-in-other-bp/93656/1 "2017-06-03T20:23:15Z")

</div>

currently trying to make a “remote” that opens a ui when left-clicked, to find all players and out of the generated list of players, when i select a generated button, it’d display a tracking arrow, pointing towards the target and display the location of the target.

got passed those parts, now trying to make it so that even after i closed the ui(removed from viewport), the target selected earlier can be called on a right-click(alt fire) again, got the alt-fire event working, but i cant seems to pull the variables i set up on the first parts to the right-click event.

should i be doing something on the ui’s button to send the newly set data, after i selected a target to the right-click event before the ui is removed from viewport?

tyty

---

<div class="post-metadata">

**Author:** ![Huston850](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Huston850](https://forums.unrealengine.com/u/Huston850)\
**Post date:** [June 4, 2017, 7:18pm UTC](https://forums.unrealengine.com/t/how-do-i-go-about-retrieving-newly-set-variable-from-a-uis-child-buttons-and-use-it-in-other-bp/93656/2 "2017-06-04T19:18:54Z")

</div>

The widget no longer exists once it’s closed so you can’t access its variables. You’ll have to store that information somewhere else.

---

<div class="post-metadata">

**Author:** ![WereAsian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WereAsian](https://forums.unrealengine.com/u/WereAsian)\
**Post date:** [June 5, 2017, 3:32pm UTC](https://forums.unrealengine.com/t/how-do-i-go-about-retrieving-newly-set-variable-from-a-uis-child-buttons-and-use-it-in-other-bp/93656/3 "2017-06-05T15:32:22Z")

</div>

yeap, figured i should put it in an invisible buff for the meantime, til i find a less round’bout way to do it

thanx again XD

---

<div class="post-metadata">

**Author:** ![SkyeEden](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/skyeeden/32/1116094_2.png) [@SkyeEden](https://forums.unrealengine.com/u/SkyeEden)\
**Post date:** [March 9, 2022, 9:34pm UTC](https://forums.unrealengine.com/t/how-do-i-go-about-retrieving-newly-set-variable-from-a-uis-child-buttons-and-use-it-in-other-bp/93656/4 "2022-03-09T21:34:18Z")

</div>


