We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Interface IMixedRealityOnDemandObserver

    The interface for defining an on-demand spatial observer which enables on demand updating

    Namespace: Microsoft.MixedReality.Toolkit.Experimental.SpatialAwareness
    Assembly: cs.temp.dll.dll
    Syntax
    public interface IMixedRealityOnDemandObserver : IMixedRealitySpatialAwarenessObserver

    Properties

    AutoUpdate

    Whether the observer updates its observations automatically on interval.

    Declaration
    bool AutoUpdate { get; set; }
    Property Value
    Type Description
    Boolean
    Remarks

    When false, call UpdateOnDemand() to manually update an observer when needed.

    FirstAutoUpdateDelay

    Delay in seconds before the observer starts to update automatically for the first time after initialization

    Declaration
    float FirstAutoUpdateDelay { get; set; }
    Property Value
    Type Description
    Single
    Remarks

    Only applies when AutoUpdate is set to true.

    UpdateOnceInitialized

    Whether the observer updates once after initialization (regardless whether AutoUpdate is true).

    Declaration
    bool UpdateOnceInitialized { get; set; }
    Property Value
    Type Description
    Boolean

    Methods

    UpdateOnDemand()

    Tells the observer to update the observations.

    Declaration
    void UpdateOnDemand()
    Remarks

    Regardless of AutoUpdate, calling this method will force the observer to update.

    In This Article
    Back to top Generated by DocFX