defaultReflectionTexture
Adds a delegate to get notifications when the default specular Cubemap is changed.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
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; }}