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

24 lines
420 B
C#

using AwesomeTechnologies.VegetationStudio;
using UnityEngine;
public class LightLoader : MonoBehaviour {
public Light Light;
void OnEnable()
{
if (Light == null) return;
VegetationStudioManager.SetSunDirectionalLight(Light);
}
void OnDisable()
{
if (Light == null) return;
VegetationStudioManager.SetSunDirectionalLight(null);
}
private void Reset()
{
Light = this.GetComponent<Light>();
}
}