defaultReflectionTexture
Adds a delegate to get notifications when the default specular Cubemap is changed.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Event
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static event Action<Texture> defaultReflectionTexture
Remarks
Additional Resources: ReflectionProbe.
Examples
using UnityEngine;using UnityEngine.Rendering;public class ReflectionProbeManager : MonoBehaviour{ private static void OnSetDefaultReflection(Texture cubemap) { Debug.Log("Default reflection cubemap was changed."); } void Start() { ReflectionProbe.defaultReflectionTexture += OnSetDefaultReflection; } void OnDestroy() { ReflectionProbe.defaultReflectionTexture -= OnSetDefaultReflection; }}