Documentation for the Unity C# Library
Loading...
Searching...
No Matches
CameraSource.cs
Go to the documentation of this file.
1using UnityEngine;
2
4{
5 public class CameraSource : MonoBehaviour
6 {
7 [SerializeField] private Camera _camera;
8
9 public static Camera Camera { get; private set; }
11 private void Awake()
12 {
13 Camera = _camera;
14 }
15 }
16}