using UnityEngine; using AmazingAssets.AdvancedDissolve; namespace AmazingAssets.AdvancedDissolve.ExampleScripts { public class AnimateGI : MonoBehaviour { Renderer mRenderer; private void Start() { mRenderer = GetComponent(); } // 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); } } }