I have duplicated an object several times, but if I change the texture of one of them, it changes the texture of them all. Is there a solution that doesn’t involve scripting?
Many thanksss
Josh
You are not changing the texture of the object, you are changing the texture of the material. Make several materials using the different textures, then assign these materials to your objects.
If you don’t understand why this is happening, then I suggest you get some reading material on Unity3D development, or game development in general. It’s not meant to be a slight, but learning how components work inside of a game environment is a pretty steep curve, and some things like your issue are a must to fully understand.
Basically, objects that are sharing the same material will react to changes to that material. So, your duplicate objects are obviously sharing a material, so a change to the material’s texture will change the clone, or any clones after that as well.
But, since they’re sharing one material, it results in one Draw Call, which is a draw pass to the GPU. If you say, duplicate the material from the original object, rename it and make it different, then apply it to the clone, you’ll have two draw calls, and now you’ll have two objects that you can change the texture on.
Needless to say, there’s a lot to it.