class ARSemanticSegmentationManager (Niantic.ARDK.Extensions.ARSemanticSegmentationManager)

Overview

class ARSemanticSegmentationManager: Niantic.ARDK.Rendering.ARRenderFeatureProvider {
public:
    // 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

public:
    // 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

Properties

Texture DepthSuppressionTexture

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

Events

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.

Methods

virtual override void ApplyARConfigurationChange(ARSessionChangesCollector.ARSessionRunProperties properties)

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

Note

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.

Parameters:

material

Material used to render the frame.