Contents

init(mesh:materials:)

Creates a model component from a mesh and a collection of materials.

Declaration

init(mesh: MeshResource, materials: [any Material])

Parameters

  • mesh:

    The mesh that describes the shape of the model.

  • materials:

    Materials used to give the mesh a certain visual appearance.