Search Unity

Bug Texture going crazy when shader color is changed.

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

  1. QueenRosa

    QueenRosa

    Joined:
    May 10, 2023
    Posts:
    30
    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


    upload_2024-1-4_3-1-14.png

    Example: https://files.fm/u/kmhekfm9ue

    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?