Can we customize materials while merging meshes

Can we customize different materials to different meshes even after merging or if not, what is the work around?

PG - https://playground.babylonjs.com/#6XIT28#2981

You can use multiMultiMaterials parameter of MergeMeshes: https://doc.babylonjs.com/typedoc/classes/BABYLON.Mesh-1#MergeMeshes

Like this:

var sample = BABYLON.Mesh.MergeMeshes([mesh,box], true, false, null, false, true)

In your playground:

thank you!