---
title: "update(_:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/meshpartcollection/update(_:)"
---

# update(_:)

Update an existing part. The old part is returned.

## Declaration

```swift
@discardableResult mutating func update(_ part: MeshResource.Part) -> MeshResource.Part?
```

## See Also

### Using the collection

- [insert(_:)](realitykit/meshpartcollection/insert(_:).md)
- [remove(id:)](realitykit/meshpartcollection/remove(id:).md)
- [removeAll()](realitykit/meshpartcollection/removeall().md)
