---
title: ClothSimulationComponent.MaterialCollection
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/clothsimulationcomponent/materialcollection
---

# ClothSimulationComponent.MaterialCollection

A collection of materials.

## Declaration

```swift
struct MaterialCollection
```

## Topics

### Accessing materials

- [subscript(_:_:)](realitykit/clothsimulationcomponent/materialcollection/subscript(_:_:)-49wu.md)
- [subscript(_:_:)](realitykit/clothsimulationcomponent/materialcollection/subscript(_:_:)-8ncq4.md)

### Removing materials

- [remove(name:)](realitykit/clothsimulationcomponent/materialcollection/remove(name:).md)

### Subscripts

- [subscript(_:)](realitykit/clothsimulationcomponent/materialcollection/subscript(_:).md)
- [subscript(_:_:)](realitykit/clothsimulationcomponent/materialcollection/subscript(_:_:).md)

## Relationships

### Conforms To

- [Collection](swift/collection.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [Sequence](swift/sequence.md)

## See Also

### Assigning materials

- [materials](realitykit/clothsimulationcomponent/materials.md)
- [ClothSimulationComponent.Material](realitykit/clothsimulationcomponent/material.md)
