# TryGetDepth Source: https://www.nianticspatial.com/docs/api/unity/NianticSpatial.NSDK.AR.Occlusion.NsdkOcclusionExtension.TryGetDepth/ 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 | Name | Type | Summary | | --- | --- | --- | | screenX | int | The x position on the screen. | | screenY | int | The y position on the screen. | | depth | float | The resulting depth value. | ---