---
title: "subscript(_:)"
framework: realitykit
role: symbol
role_heading: Instance Subscript
path: "realitykit/clothsimulationcomponent/frictionoverridescollection/subscript(_:)"
---

# subscript(_:)

Accesses the friction override for the given material pair, returning nil if no override exists.

## Declaration

```swift
subscript(key: ClothSimulationComponent.FrictionOverridesCollection.Key) -> ClothSimulationComponent.FrictionOverridesCollection.Value? { get set }
```
