Editar

Compartilhar via


MixedRealitySpatialAwarenessSystem.GetObserver Method

Definition

Overloads

GetObserver(String)

Get the IMixedRealitySpatialAwarenessObserver that is registered under the specified name.

GetObserver<T>(String)

Get the observer that is registered under the specified name matching the specified type.

GetObserver(String)

Get the IMixedRealitySpatialAwarenessObserver that is registered under the specified name.

public:
 virtual Microsoft::MixedReality::Toolkit::SpatialAwareness::IMixedRealitySpatialAwarenessObserver ^ GetObserver(System::String ^ name);
public Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessObserver GetObserver (string name);
abstract member GetObserver : string -> Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessObserver
override this.GetObserver : string -> Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessObserver
Public Function GetObserver (name As String) As IMixedRealitySpatialAwarenessObserver

Parameters

name
String

The friendly name of the observer.

Returns

The requested observer, or null if one cannot be found.

Implements

Applies to

GetObserver<T>(String)

Get the observer that is registered under the specified name matching the specified type.

public T GetObserver<T> (string name = default) where T : Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessObserver;
abstract member GetObserver : string -> 'T (requires 'T :> Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessObserver)
override this.GetObserver : string -> 'T (requires 'T :> Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessObserver)
Public Function GetObserver(Of T As IMixedRealitySpatialAwarenessObserver) (Optional name As String = Nothing) As T

Type Parameters

T

The desired spatial awareness observer type (ex: IMixedRealitySpatialAwarenessMeshObserver)

Parameters

name
String

The friendly name of the observer.

Returns

T

The requested observer, or null if one cannot be found.

Implements

Applies to