Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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.
Read time 1 minuteLast updated 5 days ago

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.