# How To Access Used Widget in 3D Widget Component

**URL:** <https://forums.unrealengine.com/t/how-to-access-used-widget-in-3d-widget-component/1429714>\
**Category:** Programming & Scripting\
**Tags:** UI-UX, unreal-engine, UI, Widget, Blueprint, question\
**Created:** [November 28, 2023, 8:22pm UTC](https://forums.unrealengine.com/t/how-to-access-used-widget-in-3d-widget-component/1429714 "2023-11-28T20:22:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![K4RKULK4](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/k4rkulk4/32/732735_2.png) [@K4RKULK4](https://forums.unrealengine.com/u/K4RKULK4)\
**Post date:** [November 28, 2023, 8:22pm UTC](https://forums.unrealengine.com/t/how-to-access-used-widget-in-3d-widget-component/1429714/1 "2023-11-28T20:22:44Z")

</div>

Hi guys!

I ran into an issue while building an Interaction Widget system and it is making me go crazy!

I have an Actor Blueprint which is spawned whenever an interactable object is close to the player. It contains a Widget component which is rendered separately and placed in Screen space.

It uses a widget that I made, called W\_InteractWidget.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/9/a89523061054633674147bba3b0014bf472ae25d.jpeg)

Everything works perfectly, but I have failed to figure out how you can get a reference to the specific W\_InteractWidget instance from the Widget component?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/5/2/6524aa7fb96c9c11d12fc3508eebc9cfb47c3fcf.png)

Thank you so much in advance!

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [November 28, 2023, 8:52pm UTC](https://forums.unrealengine.com/t/how-to-access-used-widget-in-3d-widget-component/1429714/2 "2023-11-28T20:52:49Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/0/6/8061a387e8603630f3d93c471cfa44d6010812d0.png)

if you will access often just store the widget in a variable on beginplay like this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/e/b/2eb0f26221abbd8f2fb8075b0803379cb075ada6.png)

this way you avoid cast everytime you need to access and just access from the Variable.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [December 28, 2023, 8:53pm UTC](https://forums.unrealengine.com/t/how-to-access-used-widget-in-3d-widget-component/1429714/3 "2023-12-28T20:53:45Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
