# UMG getting the screen position of a child widget

**URL:** <https://forums.unrealengine.com/t/umg-getting-the-screen-position-of-a-child-widget/298972>\
**Category:** UI\
**Tags:** icon, unreal-engine, Widget, item, Blueprint, question\
**Created:** [November 14, 2014, 9:31pm UTC](https://forums.unrealengine.com/t/umg-getting-the-screen-position-of-a-child-widget/298972 "2014-11-14T21:31:42Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![TM317](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TM317](https://forums.unrealengine.com/u/TM317)\
**Post date:** [November 14, 2014, 9:31pm UTC](https://forums.unrealengine.com/t/umg-getting-the-screen-position-of-a-child-widget/298972/1 "2014-11-14T21:31:42Z")

</div>

I am trying to create a floating tooltip the will contain information about the item icon you are hovering over.  
All the item icons are widgets that are in a uniform grid panel.  
I need to be able to get the position of the item icon to know where I should display the tooltip.

I checked the documentation and it says the only setter’s are exposed.  
How can I get the correct position to place the tooltip?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [November 14, 2014, 10:32pm UTC](https://forums.unrealengine.com/t/umg-getting-the-screen-position-of-a-child-widget/298972/2 "2014-11-14T22:32:00Z")

</div>

Hello,

I had this issue a few days ago. I have submitted a feature request (UE-5497) to the development team for further consideration. Thank you for your time and information. I will provide updates with any pertinent information as it becomes available.

Make it a great day

---

<div class="post-metadata">

**Author:** ![polymatheddy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@polymatheddy](https://forums.unrealengine.com/u/polymatheddy)\
**Post date:** [November 24, 2014, 10:59pm UTC](https://forums.unrealengine.com/t/umg-getting-the-screen-position-of-a-child-widget/298972/3 "2014-11-24T22:59:09Z")

</div>

Any knowledge on this? 4.6? Having trouble with this as well!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [November 26, 2014, 6:20pm UTC](https://forums.unrealengine.com/t/umg-getting-the-screen-position-of-a-child-widget/298972/4 "2014-11-26T18:20:12Z")

</div>

Hello ,

There exists no new information on this topic at this time. I will provide updates with any pertinent information as it becomes available.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [January 7, 2015, 7:17pm UTC](https://forums.unrealengine.com/t/umg-getting-the-screen-position-of-a-child-widget/298972/5 "2015-01-07T19:17:51Z")

</div>

Hello ,

I double checked again today and found that this issue has been fixed on an internal build and should be available in a later release.

---

<div class="post-metadata">

**Author:** ![DesertEagle\_PWN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DesertEagle\_PWN](https://forums.unrealengine.com/u/DesertEagle_PWN)\
**Post date:** [June 14, 2015, 9:21pm UTC](https://forums.unrealengine.com/t/umg-getting-the-screen-position-of-a-child-widget/298972/6 "2015-06-14T21:21:01Z")

</div>

Well, I guess I follow this page and wait… =(

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [June 15, 2015, 1:15pm UTC](https://forums.unrealengine.com/t/umg-getting-the-screen-position-of-a-child-widget/298972/7 "2015-06-15T13:15:40Z")

</div>

Hello DesertEagle\_PWN,

This feature has already be implemented in to the engine. This feature should be available in the 4.7 and higher versions on the engine. I hope that his helps.

Example:

![46428-getwidgetpositionhelp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/5/13514e5e9a9b4be49416db362bfd67f7b9237139.png)

Make it a great day

---

<div class="post-metadata">

**Author:** ![DesertEagle\_PWN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DesertEagle\_PWN](https://forums.unrealengine.com/u/DesertEagle_PWN)\
**Post date:** [June 18, 2015, 11:09pm UTC](https://forums.unrealengine.com/t/umg-getting-the-screen-position-of-a-child-widget/298972/8 "2015-06-18T23:09:30Z")

</div>

Thank you very much Rudy, these nodes had slipped under my radar. Thanks for sharing and hopefuly this page will be useful to others looking to accomplish the same thing.

---

<div class="post-metadata">

**Author:** ![majieric](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@majieric](https://forums.unrealengine.com/u/majieric)\
**Post date:** [May 6, 2016, 6:01am UTC](https://forums.unrealengine.com/t/umg-getting-the-screen-position-of-a-child-widget/298972/9 "2016-05-06T06:01:59Z")

</div>

I have buttons laid out in a Grid Panel and when I use “Slot as Canvas Slot”, it returns 0,0 for the location and 0,0 for the size.

I can’t tell if the size and location really are only available for content laid out in Canvas Panels or if the “casting” to a Canvas Panel will allow the developer to reveal the location and size of the component.

Can you clarify?

---

<div class="post-metadata">

**Author:** ![ryanjon2040](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ryanjon2040/32/906587_2.png) [@ryanjon2040](https://forums.unrealengine.com/u/ryanjon2040)\
**Post date:** [May 6, 2016, 8:14am UTC](https://forums.unrealengine.com/t/umg-getting-the-screen-position-of-a-child-widget/298972/10 "2016-05-06T08:14:18Z")

</div>

Are you using **_Slot as Canvas Slot_** on the buttons inside Grid Panel or on the Grid Panel itself?

If you want to get position of the buttons inside Grid Panel then you should use **_Slot as Grid Slot_**. You can see what slot it belongs to if you select the widget inside UMG Designer and check the details tab.

![89646-example.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/f/f/effbfcc6c8f7100ff59873225387b937aaae1b9b.png)

---

<div class="post-metadata">

**Author:** ![Pelangi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pelangi](https://forums.unrealengine.com/u/Pelangi)\
**Post date:** [January 29, 2017, 2:34am UTC](https://forums.unrealengine.com/t/umg-getting-the-screen-position-of-a-child-widget/298972/11 "2017-01-29T02:34:04Z")

</div>

Hi Rudy, I’m currently using 4.14. The `GetPosition` node will give you a relative position to the containing widget and not the exact screen pixel position. So if you place a widget inside a `ScrollBoxPanel`, and then scroll it, the `GetPosition` will give you a fixed value and not a dynamic value due to changes in the screen pixel position. Are you sure it is the one?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [January 30, 2017, 2:12pm UTC](https://forums.unrealengine.com/t/umg-getting-the-screen-position-of-a-child-widget/298972/12 "2017-01-30T14:12:45Z")

</div>

Hello Pelangi,

Slot as canvas slot will not work if the widget is not a child of the canvas slot. I hope that this information helps.

Make it a great day

---

<div class="post-metadata">

**Author:** ![Pelangi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pelangi](https://forums.unrealengine.com/u/Pelangi)\
**Post date:** [March 26, 2017, 3:39am UTC](https://forums.unrealengine.com/t/umg-getting-the-screen-position-of-a-child-widget/298972/13 "2017-03-26T03:39:26Z")

</div>

Hi Rudy, thanks for the info. But the topic of this post is about screen position right? And not the relative position of a widget to its container widget. Slot canvas will work if the container is a canvas. But it does not give the screen position of a widget inside it. Try making a `ScrollBoxPanel`, and then add `CanvasPanel` inside it, and then add any widget inside that `CanvasPanel`, and then scroll it. The position of the innermost widget will be constant. So it does not reflect **screen position**. Is there any other function which is required here?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [March 27, 2017, 1:12pm UTC](https://forums.unrealengine.com/t/umg-getting-the-screen-position-of-a-child-widget/298972/14 "2017-03-27T13:12:13Z")

</div>

Hello Pelangi,

If you are using 4.15 you could use the “Get cached Geometry” node in combination with the “Local to Viewport” node. I have provided an example below. I hope this information helps.

Example:

 ![131787-getscreenpositionhelp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/c/79ca91f39c6bd895470198fd7db308f4b71fcf05.png)

Make it a great day

---

<div class="post-metadata">

**Author:** ![rit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rit](https://forums.unrealengine.com/u/rit)\
**Post date:** [October 1, 2017, 5:00pm UTC](https://forums.unrealengine.com/t/umg-getting-the-screen-position-of-a-child-widget/298972/15 "2017-10-01T17:00:51Z")

</div>

I’m using 4.16 and I’m having the same problem.

Get Cached Geometry will not work if my widget is a child widget of a scrollList and call this function while scrolling.

---

<div class="post-metadata">

**Author:** ![AxSoler](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/axsoler/32/250446_2.png) [@AxSoler](https://forums.unrealengine.com/u/AxSoler)\
**Post date:** [April 12, 2023, 4:18pm UTC](https://forums.unrealengine.com/t/umg-getting-the-screen-position-of-a-child-widget/298972/16 "2023-04-12T16:18:33Z")

</div>

(Posting to 6 years ago) You can also get the (relative) possition of a child widget With “Get Chached Geometry” and then “Get Local Top Left”.  
 ![widgetpos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/8/3/683730d6fc69bbb3111191647322bfc690e16893.png)
