Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Bug Unlit sprite shader doesn't work

Discussion in 'Shader Graph' started by Sinister-Design, Jan 12, 2021.

  1. Sinister-Design

    Sinister-Design

    Joined:
    Sep 19, 2015
    Posts:
    39
    Pretty much what it says in the title.

    Create a Lit Sprite shader in Shader Graph, add a Sample Texture 2D node, drag a sprite in the main texture property, connect the Sample Texture 2D node to the Color input in the Fragment part of the end stack--it works fine.

    Then go to Graph Settings and under Universal, turn the Material from Sprite Lit to Sprite Unlit. The image will simply disappear (and in some cases, become replaced with a gray base color).
     
    unity_Cwad7ggLwKNc6g likes this.
unityunity