Language:
Discover
By Skill Level
By Category

Hit Test at Screen Position Tracking Space

Choose your OS:

Searches the last processed frame for anchors corresponding to a point in the captured image.

A 2D point in the captured image's coordinate space can refer to any point along a line segment in the 3D coordinate space. Hit-testing is the process of finding anchors of a frame located along this line segment.

NOTE: The hit test locations are reported in ARKit space. For hit test results in game world coordinates, you're after UAppleARKitCameraComponent::HitTestAtScreenPosition

Target is Apple ARKit Blueprint Library

Hit Test at Screen Position Tracking Space
Screen Position
X0.0
Y0.0
Types
None
Out Results
Return Value

Inputs

In
Exec
Screen Position
Vector 2D Structure

The viewport pixel coordinate of the trace origin.

Types
EAppleARKitHitTestResultType Enum

Outputs

Out
Exec
Out Results
Array of Apple ARKit Hit Test Result Structures
Return Value
Boolean