I’ve been racking my brains with this one and searching the archives but I’ve not found anything I can figure out or that works.
I’ve got a sphere, and a camera. I want to be able to drag that camera with my mouse around that sphere. Sort of like the regular editor view in Unity.
So it would be a case of holding the mouse button and dragging and you could go all the way around the sphere if you get my meaning?
Any help? It’s been a long, crappy, day at work and my brain is frazzled, lol!
I can help. Simply select the Main Camera game object and select Compnent → Camera-Control-> Mouse Orbit. Then drag the object you want to orbit into the empty slot in the Inspector pane to tell the camera’s script that that is the one you want to orbit around.
You can then also adjust other setting in the script in the Inspector pane like distance, X speed etc.
You’re welcome! It’s rare I can help with anything coding related so I was happy to reply. I rely on programming gods like Eric5h, Yoggy, Jedd, and so many many many others here to tell me how to pretend I’m a programmer.