Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 678 Bytes

File metadata and controls

15 lines (13 loc) · 678 Bytes

Unity Camera Free Look

A script that can be attached to the main camera to rotate and move it in game mode (and build) using simple input.

Controls:

  • Movement: Unity input axis (e.g. W-A-S-D, arrow keys or gamepad input axis)
  • Up: Unity input "Jump" (e.g. space)
  • Down: X
  • Rotate: Unity mouse axis

The following settings can be made directly in the Editor in the component:

  • Movement speed (default: 10)
  • Turn speed (default 3)
  • Camera spawn (default current camera position)
  • Cursor visible: Indicates whether the cursor should be visible or not (default false)
  • Lock cursor: Indicates whether the cursor is locked in the game window or not (default true)