---
title: "unproject(_:from:to:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/entitytargetvalue/unproject(_:from:to:)"
---

# unproject(_:from:to:)

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

## Declaration

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

Return Value 3D position in realitySpace.
