This file contains 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 UnityEngine; | |
using System.Collections; | |
// This script is meant to be attached to your main camera. | |
// If you want to use it on more than one camera at a time, it will require | |
// modifcations due to the Camera.on* delegates in OnEnable()/OnDisable(). | |
[ExecuteInEditMode] | |
public class CustomProjection : MonoBehaviour { | |
private void OnEnable(){ |