File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# UnityCameraFreeLook
2- A script that can be attached to the main camera to rotate and move it in Game Mode (and Build) using simple input.
2+ 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.
3+
4+ Controls:
5+ Movement: Unity input axis (e.g. W-A-S-D, arrow keys or gamepad input axis)
6+ Up: Unity input "Jump" (e.g. space)
7+ Down: X
8+ Rotate: Unity mouse axis
9+
10+ The following settings can be made directly in the Editor in the component:
11+ - Movement speed (default: 10)
12+ - Turn speed (default 3)
13+ - Camera spawn (default current camera position)
14+ - Cursor visible: Indicates whether the cursor should be visible or not (default false)
15+ - Lock cursor: Indicates whether the cursor is locked in the game window or not (default true)
You can’t perform that action at this time.
0 commit comments