Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.SceneSegmentation ←ARSceneSegmentationManager

GetChannelsAt

Returns an array of channels that are present for the specified pixel onscreen.

Declaration​

public List<SceneSegmentationChannel> GetChannelsAt(int viewportX, int viewportY, Nullable<XRCameraParams> cameraParams = null)

Summary​

Returns an array of channels that are present for the specified pixel onscreen.

Remarks​

This query allocates garbage.

Returns​

An array of channels present for the pixel.

Parameters​

NameTypeSummary
viewportXint
Horizontal coordinate in viewport space.
viewportYint
Vertical coordinate in viewport space.
cameraParamsNullable<XRCameraParams>
Params of the viewport to sample with. Defaults to current screen dimensions if null.