Mouse controllled 3rd person camera?

Hi all,

How do I use the mouse to rotate an avatar or a camera in Unity3D? When doing OpenGL/XNA programming, usually it would be to constantly center the mouse cursor, and take the offset of where the cursor is for each frame to determine the amount of rotation. Is there a better way to do this in Unity3D?

There’s a pre-made script that allows you to do this super easily. Just look in Standard Assets and you’ll find it. Drag it onto your camera object, set the parameters, and you’re good to go.