Spawn Widget in world locations

Hi,
I’m trying to build a tool similiar to matterport ( Multilevel Full Rehab - framing stage - 42 Summer Street (matterport.com) )
where an user can measure the distance between two points of the point cloud.
How can I spawn the UI widgets (dots) on the point cloud? I’ve tried to create an actor with widget components (a crosshair), but nothing appears. Here’s a screenshot of the blueprint:


What can I do?
Thank you very much.

  • if this is my wDot widget:

image

  • providing you have the desired world locations:

The Widget Component will take care of the lifespan of the widget automagically, creating and destroying it as necessary. No need to create widgets manually unless you want each component to have a different widget.

Image from Gyazo

The above is in Screen Space. If you create them in world space:

They will scale with distance from the camera but you’ll need to rotate them manually.

but nothing appears

They may be simply facing away from the camera.

2 Likes

Solved, thank you very much.

1 Like

Hello Everynone,

I know this is an old post but would you be able to provide a little more information, please? I’ve been trying in vain to spawn widgets at world locations as your videos show but I think I’m missing a crucial bit of information. After you call “Add Widget Component”, how are you providing the settings? IE all of the settings you have captured in that screenshot: which widget class to use, world space vs screen space etc.

Any help would be really appreciated! I’ve tried a lot of different things but with no luck. This seems to be the only post on the whole internet relating to this topic as well!

Thank you in advance.

1 Like

As in the original pic, select the very node and have a look at its details panel:

Further on, you can extend the widget component from the base class, expose variables and pipe in any data.

Mind blown! This was the very thing I was missing.

Thank you so much, and thanks also for the speedy reply.

Much appreciated.

1 Like