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

# unproject(_:to:)

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

## Declaration

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

Return Value 3D position in realitySpace.
