This simply creates a deep copy of the original mesh and saves memory by sharing the geometry. Each clone can have its own material and transformation.

Note that as of v5.0, cloning a mesh with skeleton will assign said skeleton to the clone, ie, the skeleton is shared. If your clone does not need a skeleton, simply set it to null.

clone.skeleton = null;

Alternatively, if your clone needs a skeleton, simply clone's the source mesh's skeleton.

clone.skeleton = mesh.skeleton.clone();


Cloning Example 1 Shows shared geometry by scaling one geometry by 2.

Cloning Example 2 Shows transformation by scaling of 2 only changes one mesh.

Cloning Example 3 Different materials.