<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/EntityTargetValue/unproject(_:to:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit",
      "SwiftUI",
      "_RealityKit_SwiftUI"
    ],
    "preciseIdentifier" : "s:19_RealityKit_SwiftUI17EntityTargetValueV9unproject_2tos5SIMD3VySfGSgs7KeyPathCyxSo7CGPointVG_qd__t0A10Foundation0A15CoordinateSpaceRd__lF"
  },
  "title" : "unproject(_:to:)"
}
-->

# unproject(_:to:)

Unproject a 2D point from the gesture value into 3D world coordinates.

```
func unproject(_ keyPath: KeyPath<Value, CGPoint>, to realitySpace: some RealityCoordinateSpace) -> SIMD3<Float>?
```

## Parameters

`keyPath`

A key path for a point on the gesture value.

`realitySpace`

The 3D coordinate space of the returned point.

## Return Value

3D position in `realitySpace`.

---

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)