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

GetPackedSceneSegmentationChannelsTexture


Declaration

public Texture2D GetPackedSceneSegmentationChannelsTexture(out Matrix4x4 samplerMatrix, Nullable<XRCameraParams> cameraParams = null)

Summary

Retrieves the texture of semantic data where each pixel can be interpreted as a uint with bits
corresponding to different classifications.

Returns

The packed scene segmentation texture, owned by the manager, if any. Otherwise, null.

Parameters

NameTypeSummary
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.