rabidus-test/Assets/Amazing Assets/Advanced Dissolve/Example Scenes/Tutorial Scenes/Files/Scripts/AnimateGI.cs

24 lines
547 B
C#

using UnityEngine;
using AmazingAssets.AdvancedDissolve;
namespace AmazingAssets.AdvancedDissolve.ExampleScripts
{
public class AnimateGI : MonoBehaviour
{
Renderer mRenderer;
private void Start()
{
mRenderer = GetComponent<Renderer>();
}
// Update is called once per frame
void Update()
{
//We need to update Unity GI every time we change material properties effecting GI
RendererExtensions.UpdateGIMaterials(mRenderer);
}
}
}