<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ModelComponent/materials",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation14ModelComponentV9materialsSayAA8Material_pGvp"
  },
  "title" : "materials"
}
-->

# materials

The materials that define the model’s visual appearance.

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

## Discussion

Each [`MeshResource`](/documentation/RealityKit/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`](/documentation/RealityKit/MeshResource/expectedMaterialCount).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)