Search Unity

Sprite-Unlit-Default shader disappeared, how can it be replaced?

Discussion in 'Universal Render Pipeline' started by Romano, Jun 10, 2020.

  1. Romano

    Romano

    Joined:
    Nov 27, 2013
    Posts:
    76
    Hi there, I'm using the URP's 2D Renderer and have been happily using the Sprite-Unlit-Default material on all my sprites. Last night I noticed that I couldn't add it to a new sprite because it was gone. It has suddenly started defaulting to the Sprites-Default material. The lit shader is still there. I tried deleting the library folder and loading it back up, which didn't help. I tried to make a new temporary material and then noticed that the unlit shader is no longer there.
    upload_2020-6-10_9-28-59.png

    Would appreciate any advice on how to fix this. I'm on 2019.3.11. I'm using Collab, my animator says even after downloading the updates I'd pushed, his sprites are still defaulting to the unlit sprite material with the unlit sprite shader as they should be.

    Thanks very much,
    Romano
     
  2. ink13

    ink13

    Joined:
    Nov 14, 2013
    Posts:
    37
    From the project view go 'create/shader/2d Renderer Sprite Unlit Graph' - give it a sensible name like 'unlit sprite'

    Double click and open that graph up in shadergraph, create a sample texture 2d and plug that into the 'sprite unlit master'

    Create a texture 2d property and call it MainTexture.

    You should be able to access your new unlit material for your sprite.