# Box widjet

**URL:** <https://forums.unrealengine.com/t/box-widjet/1355875>\
**Category:** UI\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [November 1, 2023, 2:22pm UTC](https://forums.unrealengine.com/t/box-widjet/1355875 "2023-11-01T14:22:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kivilon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kivilon](https://forums.unrealengine.com/u/kivilon)\
**Post date:** [November 1, 2023, 2:22pm UTC](https://forums.unrealengine.com/t/box-widjet/1355875/1 "2023-11-01T14:22:30Z")

</div>

Hi, I want to create a widget like a square around an object with which you can interact. GetActorBounds gives me origin and the size of the box, and then I get screen position from origin. I position the widget by screen position, but I can’t figure out how to stretch it to the X and H coordinates. If you know a way, describe and how to make a widget. Below I will present examples from different games  
 ![аываываыва](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/e/4/2e4b47470ccf36b2d81c7400ec2fbf82492503be.png)

 ![пвапвап.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/9/23991d761164c30b06049f97d4396153bd3e5aaa.jpeg)  
 ![пвапвапвап](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/9/e791548635b668198c58448382e7046f6cef2047.png)

---

<div class="post-metadata">

**Author:** ![kivilon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kivilon](https://forums.unrealengine.com/u/kivilon)\
**Post date:** [November 1, 2023, 2:23pm UTC](https://forums.unrealengine.com/t/box-widjet/1355875/2 "2023-11-01T14:23:28Z")

</div>

![ппвпвп](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/6/4965381dc3ece034df1dab9e8f171f2c2201248a.png)  
Nodes that i think can help me

---

<div class="post-metadata">

**Author:** ![kivilon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kivilon](https://forums.unrealengine.com/u/kivilon)\
**Post date:** [November 1, 2023, 3:34pm UTC](https://forums.unrealengine.com/t/box-widjet/1355875/3 "2023-11-01T15:34:14Z")

</div>

> [@Scene Actor's bounding square (screen space)?](https://forums.unrealengine.com/t/scene-actors-bounding-square-screen-space/459787/2):
>
> Hello, I cannot reproduce the tighter fit bounding box solely in Blueprints, but I can get you everything after that point, and the simpler 3D-bounding box in 2D space method: For this example, I simply create the widget in the level BP, and assign it to my Actor. [294294-figure1.png] Level BP: Next in the widget, we create an override function for OnPaint, that draws a box from the top left corner to the bottom right. Overriden Function in Widget “OnPaint”: Most …

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [December 1, 2023, 3:35pm UTC](https://forums.unrealengine.com/t/box-widjet/1355875/4 "2023-12-01T15:35:12Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
