Adds a delegate to get notifications when the default specular Cubemap is changed.
See Also: ReflectionProbe.
using UnityEngine; using UnityEngine.Rendering;
public class ReflectionProbeManager : MonoBehaviour { private static void OnSetDefaultReflection(Cubemap cubemap) { Debug.Log("Default reflection cubemap was changed."); }
void Start() { ReflectionProbe.defaultReflectionSet += OnSetDefaultReflection; }
void OnDestroy() { ReflectionProbe.defaultReflectionSet -= OnSetDefaultReflection; } }
Did you find this page useful? Please give it a rating: