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

2D Universal Render Pipeline -> Black Screen?

Discussion in 'Editor & General Support' started by HomeBearJosh, Jan 28, 2021.

  1. HomeBearJosh

    HomeBearJosh

    Joined:
    Dec 13, 2017
    Posts:
    32
    The Issue
    I'm trying to implement the 2D variant of Unity's Universal Render Pipeline.
    The Scene view is just fine; no purple shaders, etc.
    The Game window, however, is entirely black (during playing, as well).

    What I've Tried
    -Created the 2DRenderer and UniversalRenderPipeline assets.
    -Set the 2DRenderer as the default (only) renderer in the Pipeline asset's Renderer List.
    -Set the Pipeline asset in Project Settings > Graphics > Scriptable Render Pipeline Settings.

    That's just about all the info I could find on this.
    Any suggestions would be welcome!
     
  2. HomeBearJosh

    HomeBearJosh

    Joined:
    Dec 13, 2017
    Posts:
    32
    I think I figured it out, so here's what I did; hopefully it'll help out someone!

    Use Unlit Material Type

    -If you're not using any lights, be sure to use the Sprite-Unlit-Default material, not the Lit one.
    *You can set the 2D Renderer's Default Material Type to Unlit, as well.

    Camera Render Types & Stack List

    -My main issue was that all my Cameras were set up with their RenderType set to Base.
    -I had to first set the Cameras rendering on top of the base game to Overlay - like the UI Camera, for instance.
    -Then, I had to add these Overlay Cameras to the Base Camera's Stack list and order it appropriately.
    *If your rendering order is messed up, check your Canvas Render Mode and your Base Camera Stick List order.