HI, I have a prefab and it was duplicate several times in editor, so i change texture and all mesh change texture, so duplicate make an instance of a object. in this case a prefab).
But, when i change the mesh of one prefab duplicated prefabs no change geometry, so mesh is not instantiated.
I need to reaplicate a lot of same object in editor mode.
at run time, too much draw call are increased, so it would be just one, because prefab have only one texture,
How it work? im confused.
The problem is that all the mesh render are referencing the same material.
If you change it you change it for all the prefabs.
You need to create copy’s of the material and assign them to the different prefabs.
if you are changing the mesh on the prefab you change only the reference on the one prefab you are editing.
If you change the material of one prefab / object at runtime , you will create a new material → New draw call.
If you like to change the material for all objects that use the material , you can use Renderer.sharedMaterial to access the shared material , so you will not create new draw-calls because you not creating new materials.