I have a map where I instantiate multiple mesh spheres called "rx1" from a scene called Rx.
I have a script that assigns a random color once the instance is ready, as you can see in the image.
Nevertheless, I get the same random color for all of them, and I would like them all to have different colours.
I have activated Resource, local to scene, but disabling it does not work either.

I attach some images below.

Thanks in advance!



  • Solved by me. Checking and unchecking local to resource solved a problem. Seemed to be a Godot Bug.

Instances need to be made unique otherwise they share the same properties. Such as what material, what shader and so on is applied to them.

    Megalomaniak Thank you very much for replying. How can I set the scene instatiated by code as unique?

    Solved by me. Checking and unchecking local to resource solved a problem. Seemed to be a Godot Bug.

    Yep, making them local makes them unique. Not sure why it wasn't taking effect before tho.