- Home /
OnMouseDown on what? Camera Movement Help.
Hi,
I've added the standard MouseOrbit script to my MainCamera which allows the mouse to control an orbit around a central object. However, I wish for the camera to only move upon mouse down.
I understand the script will only work on a mesh or GUI Element, and so the difficulty here is that the Scene contains only a camera and my central object. There's no central mesh to apply the script to.
How do I work this so I can mouse down to scroll the camera?
Thanks,
Dan
Answer by BerggreenDK · Sep 27, 2011 at 06:07 PM
regarding your target, just add an Empty GameObject to the scene and put it where you wanna focus.
Your answer
Follow this Question
Related Questions
Can someone help me fix my Javascript for Flickering Light? 6 Answers
Setting Scroll View Width GUILayout 1 Answer
Lock target and orbit it 3 Answers
Smooth Follow Rotation 3 Answers