23 lines
345 B
C#
23 lines
345 B
C#
|
|
using UdonSharp;
|
|
using UnityEngine;
|
|
using CameraSystem;
|
|
|
|
|
|
[UdonBehaviourSyncMode(BehaviourSyncMode.Manual)]
|
|
public class CameraOutputPreview : UdonSharpBehaviour
|
|
{
|
|
[SerializeField] private GameObject _Screen;
|
|
|
|
|
|
public void CameraEnabled()
|
|
{
|
|
_Screen.SetActive(true);
|
|
}
|
|
|
|
public void CameraDisabled()
|
|
{
|
|
_Screen.SetActive(false);
|
|
}
|
|
}
|