- Home /
Question by
dorpeleg · May 15, 2013 at 04:26 PM ·
cameramousecamera-lookorbitmouse-look
Camera orbit around clicked position
Hello everyone.
I'm looking for a way to make my camera orbit a location while holding the middle mouse button.
Here is the idea:
I click and hold the middle mouse button.
When moving the mouse left and right (while still holding the middle moue), The camera should orbit the position on the Y axis.
When releasing the middle mouse, the camera should stay where it is and not go back to original position.
Thanks.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613102259im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Mouse Orbit snapping issues 0 Answers
camera orbit on mouse drag 2 Answers
Camera Orbit on Left Click problem 0 Answers
Need help with a mouse orbit script 1 Answer
Smooth transition of camera targets 2 Answers