How to change a shader's parameters individually for multiple instances?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By BardiaAB87

There are multiple instances of a scene in my game but when i use
material.set_shader_param() it changes the parameter for all the instances
how do i change each instance’s parameters individually?

:bust_in_silhouette: Reply From: Inces

get to your scene in editor, choose material tab, next resource tab, and change local_to_scene to true

1 Like
:bust_in_silhouette: Reply From: samjmiller

What @Inces said is right; another good habit it took me way too long to get into is to always “Make Subresources Unique” (choose this from the “Object Properties” (screwdriver/ wrench icon in the top right of the inspector)) whenever I copy params or open a duplicated scene. This will make sure changes you make to the copied or duplicated resource don’t also change the original.