This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |