Hi!
I am working on a project in the new version of Unity beta 2019.3 with a new universal renderer.
Please tell me how to change the values of “intensity”, “color” through the script at 2d light.
The standard methods are not suitable for this.
I need it to implement the change of time of day in 2d game.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
using UnityEngine.Experimental.Rendering.LWRP;
public sealed class SetTimeOfDay : MonoBehaviour
{
UnityEngine.Experimental.Rendering.Universal.Light2D SUN;
public static void LightSetDay()
{
//SUN
//SUN.intensity=1f;
}
public static void LightSetEvening()
{
//SUN
//SUN.intensity=0.5f;
}
public static void LightSetNight()
{
//SUN
//SUN.intensity=0.2f;
}
}