Camera Mouse Drag

Mouse-based camera rotation script for free-look and orbit camera setups. Can be used for both first-person and third-person perspectives.
Note: CameraMouseDrag is part of NWH Common. For comprehensive camera system documentation, setup examples, and advanced configurations, see NWH Common - Camera System.
Setup
- Attach to any
CameraGameObject - Optionally assign
Targetthat the camera will follow (defaults to auto-finding the vehicle if left empty) - Position camera as desired relative to the target
Controls
- Left Mouse Button (LMB): Rotate camera by dragging
- Middle Mouse Button (MMB): Zoom in and out
- Right Mouse Button (RMB): Pan camera