Material get destroyed if destroy mesh

The material gets destroyed in case a mesh is destroyed even when the same material is applied to multiple other meshes, and all meshes lose reference to it. How to make the material persist.

It should not happen if you don’t pass true for the 2nd parameter of mesh.dispose (this parameter is false by default):


Would you happen to have a repro in the playground?

1 Like