Firstborn/Assets/AwesomeTechnologies/VegetationStudioPro/Runtime/Utility/CameraLoader/CameraLoader.cs
Schaken-Mods 959e80cf72 assets upload
assets upload description.
2023-03-28 12:16:30 -05:00

28 lines
480 B
C#

using System.Collections;
using System.Collections.Generic;
using AwesomeTechnologies.VegetationStudio;
using UnityEngine;
public class CameraLoader : MonoBehaviour
{
public Camera Camera;
void OnEnable()
{
if (Camera == null) return;
VegetationStudioManager.AddCamera(Camera,false,true);
}
void OnDisable()
{
if (Camera == null) return;
VegetationStudioManager.RemoveCamera(Camera);
}
private void Reset()
{
Camera = this.GetComponent<Camera>();
}
}