Tanoda
PreviewCamerasHolder.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
3using UnityEngine;
4
5public class PreviewCamerasHolder : MonoBehaviour
6{
8 public GameObject holder;
9 public Transform holderTransform;
10
11 void Awake()
12 {
13 if (!instance)
14 instance = this;
15 else
16 Destroy(gameObject);
17
18 holder = new GameObject("PreviewCameraHolder");
19 holderTransform = holder.transform;
20 }
21}
static PreviewCamerasHolder instance