UpdateCachedState()
Updates the culling system with the ReflectionProbe's current state. This ensures that Unity correctly culls the ReflectionProbe during rendering if you implement your own runtime reflection system.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static void UpdateCachedState()
Remarks
By default, Unity culls ReflectionProbes automatically as part of the built-in Scriptable Runtime Reflection System. However, if you implement your own reflection system, you need to call this function in your implementation of ScriptableRuntimeReflectionSystem.TickRealtimeProbes. Call this method once per frame and before the rendering starts to ensure Unity correctly culls ReflectionProbes during rendering.