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. Dismiss Notice

Custom Render pipeline and Canvas

Discussion in 'Graphics Experimental Previews' started by NerdyOrc, Jul 1, 2018.

  1. NerdyOrc

    NerdyOrc

    Joined:
    Aug 6, 2013
    Posts:
    17
    Hi am playing around with the new custom rendering and I came into some trouble with the Canvas, if I leave it on overlay the custom render I setup simply does not affect it, and if I bind the canvas to my camera it simply does not render it. What am I doing wrong here?

    I am using this to test it https://blogs.unity3d.com/pt/2018/01/31/srp-overview/
     
    Last edited: Jul 1, 2018
  2. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,183
  3. NerdyOrc

    NerdyOrc

    Joined:
    Aug 6, 2013
    Posts:
    17
    Its not that is not appearing in the scene view, its that it does not appear in the game view either. I started a new project with the Lightweight render example, and with that one (if I put the canvas to be rendered by a camera) it works, I am still not sure on the why. I would play around with it some more to see if I can figure it out.
     
  4. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,183
    Any information / bug report is helpful here :)
     
  5. rosen_rusinov

    rosen_rusinov

    Joined:
    Apr 6, 2018
    Posts:
    10
    Posting in case anyone else still needs to figure this out.

    I had the same problem as the OP and it turned out that I didn't have the "SRPDefaultUnlit" pass to my transparent render draw call and it is used by the default UI shaders. Adding it fixes the issue and the canvas starts rendering properly even when set to Screen Space - Camera. Having the canvas set to Overlay apparently uses an internal pass to render ui so it works.
     
  6. Alejandro-Martinez-Chacin

    Alejandro-Martinez-Chacin

    Joined:
    Oct 15, 2013
    Posts:
    144
    What if the issue only happens on iOS (it works on Windows and Mac)
    When building to iOS, canvas elements are invisible.

    Unity 2019.1.0
    LWRP 5.7.2