# MaterialOverrides

Type alias · category: Types

Source: https://github.com/playcanvas/web-components/blob/252f001881302c266c8d727044408c32be2bb5e7/src/node.ts#L42

A sparse mapping from selector to `pc-material` id, as carried by the `material-overrides`
attribute and `materialOverrides` property. A `name:X` key selects every mesh instance of the
bound node's render component whose baseline material is named `X`; an `index:N` key selects
mesh instance `N` and wins over a name rule for the same instance.

```ts
type MaterialOverrides = Readonly<Record<string, string>>
```
