---
title: "set(vertexIndices:value:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/perclothvertexdata/set(vertexindices:value:)"
---

# set(vertexIndices:value:)

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

## Declaration

```swift
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.

## See Also

### Setting vertex values

- [setAll(value:)](realitykit/perclothvertexdata/setall(value:).md)
- [reset()](realitykit/perclothvertexdata/reset()-1nlsc.md)
- [reset()](realitykit/perclothvertexdata/reset()-403m8.md)
- [reset()](realitykit/perclothvertexdata/reset()-4x5xi.md)
