Skip to content

"Main Camera" movements scripts for Unity (for Desktop and Gear VR platforms).

License

Notifications You must be signed in to change notification settings

ahmetozlu/unity_camera_movements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.