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

24 lines
547 B
C#
Raw Normal View History

2023-09-18 20:09:22 +03:00
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);
}
}
}