- Home /
Per Object Shader Values (URP)
Hi,
I have a shader that changes that remaps the colour (perfect blue and perfect red independantly) to a set colour in Unity. I am using the URP renderer. If I change the colour variable on one objects, all of the other objects with that shader are also changed. Is there any way to instance the material per object in unity?
Thanks very much for your help.
Answer by EthanRushbrook2 · Jan 20, 2021 at 05:16 AM
Turns out I can just create a new instance of my shader and apply it to a new material and then give that to each object in script at runtime.
Your answer
![](https://koobas.hobune.stream/wayback/20220613023555im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Changing two different objects renderer colour 1 Answer
Weird rendering on Android: some materials become black, some sprites are replaced 1 Answer
Changing Shaders HDR Color results in different Color. 1 Answer
SetPropertyBlock for CanvasRenderer? 1 Answer
materials turn pink after changing render pipeline asset 4 Answers