Search Unity

Does URP support UI Canvas overlay?

Discussion in 'Universal Render Pipeline' started by Pelican_7, Oct 28, 2019.

  1. Pelican_7

    Pelican_7

    Joined:
    Nov 25, 2014
    Posts:
    190
    Hi,

    Can we use a transparent UI canvas on top of the game's content in the Universal Render Pipeline? Specifically, can we have one camera rendering the game's/world's 3D content and a second UI camera rendering a user-interface overlay, such as a HUD, on top (UI Canvas in Screen Space - Camera mode)?

    This feature, which I believe is referred to as "Camera Stacking", never made it into the LWRP package. (You can read more about it in this thread.) Now that LWRP has been renamed/relaunched as Universal, is this now available?

    Thanks.
    -andy.
     
  2. Matt-Cranktrain

    Matt-Cranktrain

    Joined:
    Sep 10, 2013
    Posts:
    129
    Camera stacking is still in development, as you can see on this branch of the SRP repo. The expectation is 2019.3 for that to be publicly available.
     
    Pelican_7 likes this.
  3. Andre_Mcgrail

    Andre_Mcgrail

    Unity Technologies

    Joined:
    Dec 9, 2016
    Posts:
    244
    This you can indeed do right now and there is no need for a second camera, unless you wanted to render the UI with different FOV, but this can then also be handled currently with the RenderObjects ScriptableRenderFeature. Camera stacking is getting there, and will make it into 2019.3/4 and live on in LTS but only in Universal RP
     
    Pelican_7 likes this.
  4. AlejUb

    AlejUb

    Joined:
    Mar 11, 2019
    Posts:
    25
    There's the "Base" and "Overlay" render modes that I have seen around on images, but can't really see how that's done. Is that a feature that we have to wait?
    Another thing is, if we want to do custom 'stacking' by rendering the 3d to a target with it's own post processing, and rendering the UI with it's other own post processing, it won't be possible to merge them anymore because we can't keep the alpha output of the final after-post created image, what happened to that? is it going to stay that way? (sometimes we can pay the price to add few effects, like Bloom to the UI).
    Thanks in advance.
     
  5. phil_lira

    phil_lira

    Unity Technologies

    Joined:
    Dec 17, 2014
    Posts:
    584
    This is coming with Camera Stacking feature. With that you can overlay camera rendering with Overlay camera types.

    We have been discussing about this. It will not be available with the first version of camera stacking. In the first version post-processing will be applied to the end of the stack.