<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelInstanceTransformResource/update(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer33LowLevelInstanceTransformResourceC6updateyxxs11MutableSpanVySo13simd_float4x4aGzq_YKXEq_YKs5ErrorR_Ri_zr0_lF"
  },
  "title" : "update(_:)"
}
-->

# update(_:)

Updates the transform data in place synchronously on the CPU.

```
final func update<R, E>(_ body: @_lifetime(0: copy 0) (inout MutableSpan<float4x4>) throws(E) -> R) throws(E) -> R where E : Error, R : ~Copyable
```

## Parameters

`body`

A closure that receives a mutable span over the transform data for in-place modification.

## Discussion

You pass a closure that receives a mutable span representing the transform data,
which the closure may modify. This span is valid only for the duration of the closure.

> Throws: Any error thrown by `body`.

---

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)