Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
//Rotates camera with mouse while pressing the navigation key, or with pressing the middle mouse button
public class CamRotor : MonoBehaviour
{
public KeyCode navigationKey;
public bool invertAxis = false;
public float mouseSensitivity = 100f;
private void LateUpdate()