Contents

unproject(_:to:)

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

Declaration

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.