---
title: materials
framework: realitykit
role: symbol
role_heading: Instance Property
platforms: [iOS 27.0+, iPadOS 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: realitykit/computegraphcomponent/materials
---

# materials

Per-output material overrides, keyed by output node identifier.

## Declaration

```swift
var materials: [ComputeNodeGraph.NodeID : any Material] { get set }
```

## Discussion

Discussion When non-nil, these materials replace the corresponding materials defined in resource. Set to [:] to restore resource-defined materials.
