How To Access Used Widget in 3D Widget Component

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.

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?

Thank you so much in advance!

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

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

2 Likes

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