• Unity
  • Missng/Pink shaders in build?

Related Discussions
...

Could you please describe in more detail in which way it "stops working"? Do you see a pink material, do you receive any error messages at the Console window? Did you try reassigning the Texture at the spine obj_Material asset, likely the reference is no longer assigned since you changed the property name? Do you receive any error/warning messages displayed in the Inspector of the spine obj_Atlas asset?

When I do this:

Harald написал

Your custom shader graph needs a Texture2D property with the reference name _MainTex, e.g. as shown in the following screenshot:

and this:

Harald написал

Did you try reassigning the Texture at the spine obj_Material asset, likely the reference is no longer assigned since you changed the property name?

Everything starts working as it should! Thank you so much!

Glad to hear, thanks for getting back to us!

In case anyone wonders why reassignment is necessary after changing the Reference name: The Reference field is the actual property name (used in code and serialization), while Name seems to be only a the "pretty-print" editor display name. Thus when changing the Reference name string, the already saved assets see the new name _MainTex and re-initialize it to null (or a black or white fallback texture) since they don't find anything previously serialized (saved) under this name.