Get all materials from the meshes

Hi, I have a question about getting materials from the meshes.
I know we can use either scene.getMaterialByName or scene.getMaterialById to get specific materials.
Is there any way to get all materials from the specific mesh?

Simply use mesh.material :slight_smile:
If it’s a multimaterial, you may want to access to its subMaterials, so you will get a materials array using mesh.material.subMaterials