Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.42 KB

README.md

File metadata and controls

32 lines (21 loc) · 1.42 KB

Unity Main Camera Movements

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.

Citation

@ONLINE{vdtc,
    author = "Ahmet Özlü",
    title  = "Unity Camera Movements",
    year   = "2017",
    url    = "https://github.com/ahmetozlu/unity_camera_movements"
}

Author

Ahmet Özlü

License

This repository is available under the MIT license. See the LICENSE file for more info.