# Spawn Widget in world locations

**URL:** <https://forums.unrealengine.com/t/spawn-widget-in-world-locations/236972>\
**Category:** Editor Scripting\
**Tags:** unreal-engine\
**Created:** [June 23, 2021, 10:27am UTC](https://forums.unrealengine.com/t/spawn-widget-in-world-locations/236972 "2021-06-23T10:27:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jobim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jobim](https://forums.unrealengine.com/u/jobim)\
**Post date:** [June 23, 2021, 10:27am UTC](https://forums.unrealengine.com/t/spawn-widget-in-world-locations/236972/1 "2021-06-23T10:27:24Z")

</div>

Hi,  
I’m trying to build a tool similiar to matterport ( [Multilevel Full Rehab - framing stage - 42 Summer Street (matterport.com)](https://my.matterport.com/show/?m=JDaba3GGAW6) )  
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:

 ![capture1](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/f/ef1d3848be6a322edbd7e15bb2e03ad87171be2e.png)  
What can I do?  
Thank you very much.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 23, 2021, 10:44am UTC](https://forums.unrealengine.com/t/spawn-widget-in-world-locations/236972/2 "2021-06-23T10:44:41Z")

</div>

- if this is my wDot widget:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/c/fcfae02d9fe2c9b57a4ebed6441feec0e051a401.png)

- providing you have the desired world locations:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/5/15a214672228a256a6b5ec5fc9fd0ecd9debe3b9.png)

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](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/d/b/cdbb463d7275aa234c3a7e1406c8dc9bce884ba4.gif)](https://gyazo.com/376010b74ca67a90ceea612ccfbfdc34)

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.

---

<div class="post-metadata">

**Author:** ![jobim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jobim](https://forums.unrealengine.com/u/jobim)\
**Post date:** [June 23, 2021, 12:14pm UTC](https://forums.unrealengine.com/t/spawn-widget-in-world-locations/236972/3 "2021-06-23T12:14:10Z")

</div>

Solved, thank you very much.

---

<div class="post-metadata">

**Author:** ![dogbeatssnake](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dogbeatssnake](https://forums.unrealengine.com/u/dogbeatssnake)\
**Post date:** [February 4, 2025, 4:47pm UTC](https://forums.unrealengine.com/t/spawn-widget-in-world-locations/236972/4 "2025-02-04T16:47:46Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 4, 2025, 4:54pm UTC](https://forums.unrealengine.com/t/spawn-widget-in-world-locations/236972/5 "2025-02-04T16:54:58Z")

</div>

> [@dogbeatssnake](#):
>
> After you call “Add Widget Component”, how are you providing the settings?

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

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/c/f/4cfb6c4c283328f820c9a7856a059149036e7783.png)

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

---

<div class="post-metadata">

**Author:** ![dogbeatssnake](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dogbeatssnake](https://forums.unrealengine.com/u/dogbeatssnake)\
**Post date:** [February 5, 2025, 2:43pm UTC](https://forums.unrealengine.com/t/spawn-widget-in-world-locations/236972/6 "2025-02-05T14:43:28Z")

</div>

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

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

Much appreciated.
