<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ClothSimulationComponent/FrictionOverridesCollection/Key/init(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:22RealityFoundationCloth0C19SimulationComponentV27FrictionOverridesCollectionV3KeyVyAGSS_SStcfc"
  },
  "title" : "init(_:_:)"
}
-->

# init(_:_:)

Creates a material-pair key from the names of the two materials.

```
init(_ material1: String, _ material2: String)
```

## Parameters

`material1`

The name of the first material.

`material2`

The name of the second material.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)