---
title: materials
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/modelcomponent/materials
---

# materials

The materials that define the model’s visual appearance.

## Declaration

```swift
var materials: [any Material]
```

## Discussion

Discussion Each MeshResource requires a set of materials. An entity that has no materials renders using a magenta striped material. To determine the number of materials a mesh requires, use expectedMaterialCount.
