Sprite with shader graph not showing in scene view

Hi guys,

I made a colorswap shader for a sprite using the Universal render pipeline and a 2d lit shadergraph. The problem is that it works fine actually in game, but in the scene view I just see a big purple blob. I attached an image that shows what is happening. On the right is the original sprite without shader that is working fine.

Any idea what is happening?

7585891--940447--ColorSwap.png

Difficult to say without seeing the shader.

Its also there without the colour swap so I attached this sample. I use the UniversalRenderPipeLine with 2D renderer Data. I am on Unity 2019.4.17f1. The spritegraph 2d unlit says “experimental” in this version but I tried upgrading and it is the same story (and broke so many things I reverted). I just find it weird that it displays correctly in the game view but not in the scene view.


Hmm, I think this is a bug? The pink color in your graph preview is normally used to signify that an object’s shader is failing to compile, and so the object can’t be drawn properly (the blob shape that you’re seeing is the sprite mesh that Unity generates when you use the ‘tight’ mesh type). But your shader clearly isn’t failing to compile, and I don’t see anything wrong with the example you posted.

Time to file a bug report, I think.

Did you press the ‘Save Asset’ button?