# Rotate object with mouse in Scene Capture 2D

**URL:** <https://forums.unrealengine.com/t/rotate-object-with-mouse-in-scene-capture-2d/608403>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, Widget, Blueprint, question, UMG\
**Created:** [July 19, 2022, 10:31am UTC](https://forums.unrealengine.com/t/rotate-object-with-mouse-in-scene-capture-2d/608403 "2022-07-19T10:31:47Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jdgfkf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jdgfkf](https://forums.unrealengine.com/u/jdgfkf)\
**Post date:** [July 19, 2022, 7:11pm UTC](https://forums.unrealengine.com/t/rotate-object-with-mouse-in-scene-capture-2d/608403/3 "2022-07-19T19:11:11Z")

</div>

Solved with that

> [@Rotating 3d actor overlay inside widget with drag operation?](https://forums.unrealengine.com/t/rotating-3d-actor-overlay-inside-widget-with-drag-operation/529366/2):
>
> You need to use mouse move to achieve better results: On mouse down you save current mouse position, set some bool so mouse move function can calculate the change in drag, Mouse move you Get current mouse position and subtract it from old mouse position Mouse up you stop mouse move Here’s a working example I have, in the last image you see I’m using add local rotation to a spring arm so replace the spring arm with a mesh or whatever you want to rotate.

---

_[View the full topic](https://forums.unrealengine.com/t/rotate-object-with-mouse-in-scene-capture-2d/608403)._
