G
G
Gwinterion2021-05-26 05:19:49
Unity
Gwinterion, 2021-05-26 05:19:49

unity. Why do changes to shader properties apply to all objects, and how can I fix this?

I've added a few UI elements to the canvas. I need them to have different shader settings, but when I change the shader settings for one object, they apply to all the others as well. Is it possible to somehow edit the properties of each object separately?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
freeExec, 2021-05-26
@Gwinterion

Either useMaterialPropertyBlock

G
GavriKos, 2021-05-26
@GavriKos

You are not editing shader properties, you are editing material properties. Get multiple materials with one shader.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question