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

GetChannelIndicesAt

Returns an array of channel indices that are present at the specified pixel onscreen.

Declaration​

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

Summary​

Returns an array of channel indices that are present at the specified pixel onscreen.

Remarks​

This query allocates garbage.

Returns​

An array of channel indices 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.