# Draw a rectangle the size of the error

**URL:** <https://forums.unrealengine.com/t/draw-a-rectangle-the-size-of-the-error/319775>\
**Category:** C++\
**Tags:** debug-draw, unreal-engine, CPP, question\
**Created:** [May 26, 2015, 7:04am UTC](https://forums.unrealengine.com/t/draw-a-rectangle-the-size-of-the-error/319775 "2015-05-26T07:04:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_70c175b8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_70c175b8](https://forums.unrealengine.com/u/anonymous_user_70c175b8)\
**Post date:** [May 26, 2015, 7:04am UTC](https://forums.unrealengine.com/t/draw-a-rectangle-the-size-of-the-error/319775/1 "2015-05-26T07:04:30Z")

</div>

![44128-20150526144827.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/8/8886c97a3d0328e8c97e98fa8ea5fa92222c5305.png)

Click SDHDrawWidget4 vertices, but draw a rectangle the size of the error.

How to use the mouse to draw a rectangle?

Any help would be appreciated. Thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_70c175b8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_70c175b8](https://forums.unrealengine.com/u/anonymous_user_70c175b8)\
**Post date:** [May 26, 2015, 11:38am UTC](https://forums.unrealengine.com/t/draw-a-rectangle-the-size-of-the-error/319775/2 "2015-05-26T11:38:39Z")

</div>

It has been resolved.

FVector2D LocalCoords( MyGeometry.AbsoluteToLocal(MouseEvent.GetScreenSpacePosition()));
