Search Unity

Bug Texture going crazy when shader color is changed.

Discussion in 'Shader Graph' started by QueenRosa, Jan 4, 2024.

  1. QueenRosa


    May 10, 2023
    It's weird, because I made this shader and on my old spritesheet it worked fine. Didn't change anything. Switched it over to my new, larger spritesheet, and for some reason it freaks out when I change one of the colors. If I move the sprite after, it unbreaks and goes back to normal which is very strange.

    How can I fix it? For reference, this is the first setup line in my shader graph, if it helps



    Directly modifying the material without selecting the body won't cause the glitch. But I am just confused on why it began happening in the first place. Colors will change at runtime. These objects are being randomly generated. I don't want it to recreate then.

    Is there any fix for this?