Open and close widget using line trace

Hello developers,

I don’t know if this is the right forum or not. because i am new here. Hope I will get help.

I created a simple room where a user can change material at real time by picking up the material. I created a blue print object and used box collision to execute that blue print.

Here is the link to the video of my demo. Tiles Viewer - YouTube

Now I want to open and close widget using line trace so I can define the surface of which the user wants to change the material. How do I do it?

Please help me. Thank you in advance.

  • Moved to Blueprint Visual Scripting -