class ARSemanticSegmentationManager (Niantic.ARDK.Extensions.ARSemanticSegmentationManager)


class ARSemanticSegmentationManager: Niantic.ARDK.Rendering.ARRenderFeatureProvider {
    // properties

    Texture DepthSuppressionTexture;
    ISemanticBufferProcessor SemanticBufferProcessor;

    // events

    event SemanticBufferInitialized();
    event SemanticBufferUpdated();

    // methods

    virtual override void ApplyARConfigurationChange(ARSessionChangesCollector.ARSessionRunProperties properties);
    virtual override void UpdateRenderState(Material material);

Inherited Members

    // properties

    bool AreFeaturesEnabled;
    bool CanInitialize;
    bool Initialized;
    ISet<string> Features;
    RenderTarget? Target;
    ArdkEventHandler<RenderFeaturesChangedArgs> ActiveFeaturesChanged;
    ISet<string>?? Features;
    RenderTarget? Target;

    // events

    event ActiveFeaturesChanged();

    // methods

    void Deinitialize();
    void DisableFeatures();
    void EnableFeatures();
    void Initialize();
    virtual abstract void ApplyARConfigurationChange(ARSessionChangesCollector.ARSessionRunProperties properties) = 0;
    void UpdateRenderState(Material material);
    virtual abstract void UpdateRenderState(Material material) = 0;

Detailed Documentation


Texture DepthSuppressionTexture

Returns a reference to the depth suppression mask texture, if present. If the suppression feature is disabled, this returns null.


event SemanticBufferInitialized()

Event for when the first semantics buffer is received.

event SemanticBufferUpdated()

Event for when the contents of the semantic buffer or its affine transform was updated.


virtual override void ApplyARConfigurationChange(ARSessionChangesCollector.ARSessionRunProperties properties)

Inheritors should override this to modify session configuration settings based on their script’s needs.


This is executed as a result of the ARSession being run, which may or may not be triggered by a call to RaiseConfigurationChanged().

virtual override void UpdateRenderState(Material material)

Called when it is time to copy the current render state to the main rendering material.



Material used to render the frame.