Contents

expectedMaterialCount

The number of material entries required to render the mesh resource.

Declaration

@MainActor @preconcurrency var expectedMaterialCount: Int { get }

Discussion

Use this value to determine the number of Material instances to provide in the materials array. When a mesh has multiple submeshes, each submesh references a material by index.

See Also

Configuring the resource