Hello there! I am making a 3D game and i have a few floating island prefabs.I drag each time i want to create a new island one of the available prefabs in the hierarchy to add some props on it and then make the new finsihed island a prefab.I’ve recently noticed that, when i add a new empty floating island and change let’s say it’s material’s color, every single other instance of that prefab including the finished island(the one with the props on) changes material color and that’s a huge pain for me since it doesn’t allow me to continue with my game.I tried my best to explain this issue and sorry if it’s not very understandable!So my question is, can i change the material of an instance of the island prefab without changing every other’s material?Sorry if this is a dumb question btw.
You just have to create a different material for each different island: when you change a material, all GameObjects with this material will change even if they are not from the same prefab.
Remember that a material is passed by reference in the editor and not by value.
This happens because all floating islands share the same material.
You could assing a new material to every new island (not the most efficient solution, but it should work).