Contents

init(mesh:materials:)

Creates a model entity with a particular mesh and set of materials.

Declaration

@MainActor @preconcurrency init(mesh: MeshResource, materials: [any Material] = [])

Parameters

  • mesh:

    A mesh that defines the geometry of the model.

  • materials:

    Material resources that define the appearance of the model.

See Also

Creating a model