UI button to open door?Please help!

Guys i’m trying to cast the widget UI to the door,so i can press button 1 and open it,2 and close it but i just can’t cast it.What am i doing wrong here? I’m stuck on this!

Try get player controller instead

You need a reference to your “doorproximity” actor in the level, not a reference to the owning player or the controller. Somehow you need to tell the widget with the “pressed” event what “doorproximity” is and for that you need to give it a reference to the actor. OR you need to tell “doorproximity” who the widget is. You can use interfaces, event dispatchers, the Level BP with a direct reference or if you must and only have 1 door in your level “get all actors of class”.

Guys thanks for your help,it workded great!