Skip to main content
API Reference NianticSpatial.NSDK.AR.Occlusion NsdkOcclusionExtension

TryGetDepth

Returns the metric eye depth at the specified pixel coordinates.

Declaration

public bool TryGetDepth(int screenX, int screenY, out float depth)

Summary

Returns the metric eye depth at the specified pixel coordinates.

Returns

Whether retrieving the depth value was successful.

Parameters

NameTypeSummary
screenXint
The x position on the screen.
screenYint
The y position on the screen.
depthfloat
The resulting depth value.