Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Any way to check if Reflection Probes are done rendering?

Discussion in 'General Graphics' started by Marc-Saubion, Jan 14, 2021.

  1. Marc-Saubion

    Marc-Saubion

    Joined:
    Jul 6, 2011
    Posts:
    645
    Hi everyone.

    I'm working on a game that will have multiple skyboxes choices for a same level. For that reason, reflection probes are rendered in game once the level is loaded.

    This works fine but I'd like to hide the process behind a loading screen and need to know when the RProbes are done rendering.

    I found this but as far as I've tested, it requires both the Rprobe and it's RenderID which means my script will have to store multiple lists.

    I was hoping there is a more direct API that would look like "RenderReflectionProbe.Active". I've already tried "RenderTexture.active" but it isn't reliable for some reason.

    Has anybody found a good solution for this scenario?

    Thanks in advance. :)