Skip to content

Instantly share code, notes, and snippets.

View grayrhino's full-sized avatar
💭
Busy learning things

Gray Rhino grayrhino

💭
Busy learning things
  • South Korea
View GitHub Profile
@grayrhino
grayrhino / CameraController.cs
Last active April 30, 2019 01:35
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.
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