Skip to content

Instantly share code, notes, and snippets.

Busy learning things

Gray Rhino grayrhino

Busy learning things
  • South Korea
View GitHub Profile
grayrhino / CameraController.cs
Last active Apr 30, 2019
I have been working on a Camera Controller for Unity that can be used for large area scenes. The code is not entirely mine but I believe it is worth sharing since I couldn't find something similar that easily.
View CameraController.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
* In order for the code below to work without error you have to:
* 1. Add the script to the Main Camera
* 2. In Inspector change the Main Camera tag to MainCamera
* 3. In Hierarchy create UI element EventSystem