DrawMesh and MaterialPropertyBlock

Hi,

As per the documentation of Graphics.DrawMesh and MaterialPropertyBlock, same mesh can be redrawn using a bit different properties such as color. But as i move on i see that it actually creates an instance of the material (for the material used in arguement of Graphics.DrawMesh), and using sharedMaterial behaves as it says for all objects with that material. :hushed:

So are these two (Graphics.DrawMesh and MaterialPropertyBlock) only providing performance improvement and not avoiding material (or mesh if sharedMesh not used) instantiating ?!! :face_with_spiral_eyes:

If so then for few objects this is equivalent to use Material.color property directly which also creates instance of the shared material.

Please let me know if i m missing something…

Thanks

What you have typed is a bit confusing, but it sounds right.

Sorry Ryan if it sounded confusing; what i was looking for was changing material properties without instantiating the material (i.e., changing properties without any instances of shared material)

But what i obtained was similar to using Material.color property (which creates an instance of material)