How to read cubemap from realtime reflection probe

  • I’m using an ocean rendering system which accepts an input cubemap for reflections. My scenes are generated dynamically. I have a reflection probe in my scene which is set to “Realtime > Via Scripting > Individual Faces”.

  • Even after calling _probe.RenderProbe(), both _probe.bakedTexture and _probe.customBakedTexture are null and the static ReflectionProbe.defaultTexture variable returns a “UnityBlackCube” Cubemap. How do I access the internal cubemap texture generated by this render probe?

  • Relevant docs: Unity - Scripting API: ReflectionProbe

And what about _probe.texture ?