# Rotate blueprint actor with mouse

**URL:** <https://forums.unrealengine.com/t/rotate-blueprint-actor-with-mouse/1145209>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [April 26, 2023, 4:14pm UTC](https://forums.unrealengine.com/t/rotate-blueprint-actor-with-mouse/1145209 "2023-04-26T16:14:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gerard979\_3D](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gerard979\_3D](https://forums.unrealengine.com/u/Gerard979_3D)\
**Post date:** [April 26, 2023, 4:14pm UTC](https://forums.unrealengine.com/t/rotate-blueprint-actor-with-mouse/1145209/1 "2023-04-26T16:14:48Z")

</div>

Hello,  
I am trying to rotate an object inside a blueprint actor in any direction when the left mouse button is clicked and held.  
Based on another topic, I have this logic inside a blueprint actor named TeapotInspec\_BP, but it doesn’t work.

 ![logic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/8/c/d8c6143586d0993c9a8619268aef7088ccd7e72f.jpeg)

Comment that in the main scene the player is a camera actor inside a blueprint actor named CameraActor\_BP without any motion setting.

any idea?  
Thanks

---

<div class="post-metadata">

**Author:** ![Gerard979\_3D](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gerard979\_3D](https://forums.unrealengine.com/u/Gerard979_3D)\
**Post date:** [April 27, 2023, 12:23pm UTC](https://forums.unrealengine.com/t/rotate-blueprint-actor-with-mouse/1145209/2 "2023-04-27T12:23:14Z")

</div>

I have redone the logic. This one is clearer for me, but, it doesn’t work either.

 ![logic2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/7/5871a7c87eef629db485e786b2d7c5c0f9e9073c.jpeg)  
note: the static mesh has changed. Now is a cube instead of “Tetera mesh”

I think the problem is the CameraActor\_BP, which works as default player. How can I adapt this logic taking into account the CameraActor\_BP?, maybe I have to program a logic inside CameraActor\_BP?

---

<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:** [April 27, 2023, 1:45pm UTC](https://forums.unrealengine.com/t/rotate-blueprint-actor-with-mouse/1145209/3 "2023-04-27T13:45:29Z")

</div>

Would this help:

> [@Rotate an object in all directions using the mouse](https://forums.unrealengine.com/t/rotate-an-object-in-all-directions-using-the-mouse/463545/2):
>
> Rotating an object is rather straighforward: [[Image from Gyazo]](https://gyazo.com/f1e0aae3a4e579adf7cb83323e43e9a1) After that, the user needs to be able to click on certain areas of the object Child Actors Components sound like the most obvious solution if the attached elements need to define their own unique logic. Depending on what is required (complexity of the shape of the object, modularity, scope) you could have sockets on a static mesh and add Child Actors Components procedurally. I can’t use the default templa…

---

<div class="post-metadata">

**Author:** ![Gerard979\_3D](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gerard979\_3D](https://forums.unrealengine.com/u/Gerard979_3D)\
**Post date:** [April 27, 2023, 5:41pm UTC](https://forums.unrealengine.com/t/rotate-blueprint-actor-with-mouse/1145209/4 "2023-04-27T17:41:05Z")

</div>

Perfect. It’s working now. Thank you very much.  
The logic inside the camera player blueprint.

 ![logic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/d/7/bd73ef0afc6628a48fbdd3fde59b963ef3d65d20.jpeg)

In the level where the object to rotate is, there is a menu where, by clicking on a button, the scene changes camera and jumps to another level. Here is the logic…

 ![logic_widget](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/7/b/27b8f2a6ec4ecdb7d0c60a6b952c809b9170e23b.jpeg)

What I would like is that the object to rotate, once we click on the button, returns to its initial rotation state (if it can be smoothly) and then jumps to another level.

Thanks again
