0 votes

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?

in Engine by (19 points)
edited by

2 Answers

+1 vote
Best answer

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

by (8,099 points)
selected by
0 votes

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.

by (172 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.