Search Unity

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:
    655
    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. :)