When I want to add the SpriteColor node in fragment, I can’t find the SpriteColor node. How can I create a SpriteColor node in the fragment?(Using URP and material is Sprite Unlit)




When I want to add the SpriteColor node in fragment, I can’t find the SpriteColor node. How can I create a SpriteColor node in the fragment?(Using URP and material is Sprite Unlit)




Usually you get the fragment color from the MainTex. Lookup on YouTube sprite shader graph tutorials.
In short, you create a Sample Texture2D Node. On the blackboard, create a Texture. That texture should have a reference of “_MainTex” (without the quotes). This will pull the texture from the sprite assigned to the SpriteRenderer. Connect that texture property to input of the Sample 2D Texture node, and connect the sampler’s Vector4 output to the Fragment color output.