<!--
{
  "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(_:from:to:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit",
      "SwiftUI",
      "_RealityKit_SwiftUI"
    ],
    "preciseIdentifier" : "s:19_RealityKit_SwiftUI17EntityTargetValueV9unproject_4from2tos5SIMD3VySfGSgSo7CGPointV_qd__qd_0_t0cD023CoordinateSpaceProtocolRd__0A10Foundation0amN0Rd_0_r0_lF"
  },
  "title" : "unproject(_:from:to:)"
}
-->

# unproject(_:from:to:)

Unproject `point` from a 2D coordinate space into 3D world coordinates.

```
func unproject(_ point: CGPoint, from space: some CoordinateSpaceProtocol, to realitySpace: some RealityCoordinateSpace) -> SIMD3<Float>?
```

## Parameters

`point`

A point in the provided coordinate space.

`space`

The 2D coordinate space in which to interpret the `point`.

`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)