- Home /
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.
So are these two (`Graphics.DrawMesh` and MaterialPropertyBlock
) only providing performance improvement and not avoiding material (or mesh if sharedMesh
not used) instantiating ?!!
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
Your answer
Follow this Question
Related Questions
Can Material Property Blocks be serialized? 1 Answer
Graphic.DrawMesh - Managing colors, mesh, layers 0 Answers
Change compute buffer for a set of objects 0 Answers
Will Unity support hardware mesh instancing? 0 Answers
How to flush mesh batch in editor OR how to draw a mesh for single frame in editor? 3 Answers