Skip to content

biiigbao/UnityCameraFreeLook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

UnityCameraFreeLook

A script that can be attached to the main camera to rotate and move it in Game Mode (and Build) using simple input. Tested in Unity 2018.2.9f1.

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)

About

A script that can be attached to the main camera to rotate and move it in Game Mode (and Build) using simple input.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C# 100.0%