This repository focus on main camera movements scripts for Unity . It includes two useful scripts for main camera movements.
-
MoveCamera.cs: The main camera can be controlled via "arrow keys", or "A", "D", "W", "S". Moreover, camera rotation can be changed with "mouse clicks" and also main camera can be moved up or down via keyboard for example "shift" key can be used for move camera up and "ctrl" key can be used for move camera down.
- Usage: Drag "MoveCamera.cs" and assign it to "Main Camera" game object.
How can I use "MoveCamera.cs" in Unity?
-
MoveCameraForGearVR.cs: This script is very usefull for "Main Camera" movements of Unity for Gear VR platforms(Oculus, Samsung Gear VR and HTC Vive). The main camera can be controlled by "Gear inputs" by "MoveCameraForGearVR.cs" script.
- Usage: Drag "MoveCameraForGearVR.cs" and assign it to "Main Camera" game object.
@ONLINE{vdtc,
author = "Ahmet Özlü",
title = "Unity Camera Movements",
year = "2017",
url = "https://github.com/ahmetozlu/unity_camera_movements"
}
Ahmet Özlü
This repository is available under the MIT license. See the LICENSE file for more info.