<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PerClothVertexData/set(vertexIndices:value:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:22RealityFoundationCloth03PerC10VertexDataV3set13vertexIndices5valueySays6UInt32VG_xtF"
  },
  "title" : "set(vertexIndices:value:)"
}
-->

# set(vertexIndices:value:)

Sets the data for the given vertex indices to a common value.

```
mutating func set(vertexIndices: [UInt32], value: ElementType)
```

## Parameters

`vertexIndices`

The indices of the vertices to update.

`value`

The value to assign to each of the specified vertices.

---

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)