Search Unity

Check if anything is rendering to a render texture

Discussion in 'General Graphics' started by Koyemsi, Mar 21, 2018.

  1. Koyemsi

    Koyemsi

    Joined:
    Sep 25, 2017
    Posts:
    29
    Hi everybody,
    I have several cameras, all of them rendering to the same render texture. These cameras belong to homing missiles fired by the player. This works well : the last spawned camera being the one rendered.

    I need to check if any camera currently renders to the texture ; if not (which means that all missiles have been destroyed), I want to disable the render texture.
    How can I check what's being rendered (or not rendered) to my texture ? Thanx for help.