Tanoda
CameraModeChanger.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
3using NaughtyAttributes;
4using UnityEngine;
5
6[RequireComponent(typeof(Camera))]
7public class CameraModeChanger : MonoBehaviour
8{
9 [Button]
10 private void GoOrto()
11 {
12 GetComponent<Camera>().orthographic = true;
13 }
14}
UnityEngine.UI.Button Button
Definition: Pointer.cs:7