---
title: materialNames
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/clothbodycomponent/materialnames
---

# materialNames

The names of the body materials used by this cloth body.

## Declaration

```swift
var materialNames: [String]
```

## Discussion

Discussion The default material is used if no matching material name is present in ClothSimulationComponent. The material of the cloth body determines different properties about the physical behavior of the body, like its resistance to being stretched or the friction it experiences when colliding. Note, only the first material name is used.

## See Also

### Mapping the visual mesh

- [visualMesh](realitykit/clothbodycomponent/visualmesh.md)
- [visualMeshWeights](realitykit/clothbodycomponent/visualmeshweights.md)
- [ClothBodyComponent.PerVisualVertexData](realitykit/clothbodycomponent/pervisualvertexdata.md)
- [ClothBodyComponent.PerSimulationVertexData](realitykit/clothbodycomponent/persimulationvertexdata.md)
