Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question All Shader Graph Sprite Shaders Turn Invisible in Play Mode

Discussion in 'Shader Graph' started by TyrantNomad, Oct 11, 2019.

  1. TyrantNomad

    TyrantNomad

    Joined:
    Jul 4, 2013
    Posts:
    6
    EDIT: Found the issue, there was a problem with scaling in code causing the sprites to disappear - however, the default materials seemed to ignore this problem while shader graph materials did not; I assume it's because the default 2d materials are set to ignore Z scale.

    Currently, all my Sprite (Unlit or Lit) shaders work fine until entering play mode, at which point all materials using a Shader Graph sprite shader will disappear.
    I've reproduced this and it still disappears - even this disappears:

    I've tested this on Unity 2019.2.4f1 and 2019.2.8f1, and on Shader Graph 6.9.0 and 6.9.1.
    Changing the material to use the default lit shader or other default sprite shaders makes them reappear.

    Unless I'm doing something fundamentally wrong, I have no idea of what might be causing this or how to fix the issue; any input is greatly appreciated.
     
    Last edited: Oct 11, 2019