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