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

GetSceneSegmentationChannelTexture

Returns semantic segmentation texture for the specified semantic channel.

Declaration​

public Texture2D GetSceneSegmentationChannelTexture(SceneSegmentationChannel channel, out Matrix4x4 samplerMatrix, Nullable<XRCameraParams> cameraParams = null)

Summary​

Returns semantic segmentation texture for the specified semantic channel.

Returns​

The texture for the specified semantic channel, if any. Otherwise, null.

Parameters​

NameTypeSummary
channelSceneSegmentationChannel
The semantic channel to acquire.
samplerMatrixMatrix4x4
A matrix that converts from viewport to image coordinates according to the latest pose.
cameraParamsNullable<XRCameraParams>
Params of the viewport to sample with. Defaults to current screen dimensions if null.