Skip to main content
API Reference NianticSpatial.NSDK.AR.XRSubsystems XRSemanticsSubsystem

TryGetSemanticChannel


Declaration

public bool TryGetSemanticChannel(string channelName, out XRTextureDescriptor semanticsChannelDescriptor, out Matrix4x4 samplerMatrix, Nullable<XRCameraParams> cameraParams = null)

Parameters

NameTypeSummary
channelNamestring
The string description of the semantics channel to acquire.
semanticsChannelDescriptorXRTextureDescriptor
The resulting semantic channel texture descriptor, if available.
samplerMatrixMatrix4x4
The matrix that transforms from normalized viewport coordinates to normalized texture coordinates.
cameraParamsNullable<XRCameraParams>
Describes the viewport the texture is to be displayed on.