Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andreasbaumde/unityinputsystemcamerafreelook
A script that can be attached to a [Cinemachine Virtual Camera] or the [Main Camera] to rotate and move it in game mode (and build) using the Unity Input System.
https://github.com/andreasbaumde/unityinputsystemcamerafreelook
camera cinemachine freelook inputsystem unity unity3d
Last synced: about 1 month ago
JSON representation
A script that can be attached to a [Cinemachine Virtual Camera] or the [Main Camera] to rotate and move it in game mode (and build) using the Unity Input System.
- Host: GitHub
- URL: https://github.com/andreasbaumde/unityinputsystemcamerafreelook
- Owner: andreasbaumde
- Created: 2021-08-09T14:28:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-09T15:11:05.000Z (over 3 years ago)
- Last Synced: 2024-11-05T16:13:13.828Z (3 months ago)
- Topics: camera, cinemachine, freelook, inputsystem, unity, unity3d
- Language: C#
- Homepage:
- Size: 6.84 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unity Input System Camera Free Look
A script that can be attached to a **[Cinemachine Virtual Camera]** or the **[Main Camera]** to rotate and move it in game mode (and build) using the Unity Input System.**How it works:**
**(1)** If you are NOT using Cinemachine: Change "CinemachineVirtualCamera" to "Camera" (line 7).
**(2)** Add the FreeLook component to your MainCamera or Cinemachine Virtual Camera
**(3)** Assign the InputActionAsset to be used to the "Actions" field in the inspector
**(4)** Check that your InputActionAsset has the following actions (you can use different names)
**Up:** Button
**Down:** Button
**Move:** Vector2
**MouseLook:** Vector2
**GamepadLook:** Vector2
**(5)** Check that the names of the individual actions match the fields CameraUpActionName, CameraDownActionName, CameraMoveActionName, CameraMouseLookActionName and CameraGamepadLookActionName
**(6)** Adjust movement and rotation speed
**(7)** Have fun with the script