Select Individual faces from an imported mesh or custom made mesh by blender

Hi @Peanut_Butter I understood. When a mesh is created, it immediately creates the subMeshes property with one element in the array - the mesh itself that was created. That’s why we always got 0 when click on the mesh. By writing sampleBox.subMeshes = ; you just clear the subMeshes array === original mesh. and recreate this mesh with new submeshes

1 Like