Dela via


SpatialInteractionSource.TryCreateHandMeshObserver Method

Definition

Synchronously requests a HandMeshObserver to provide mesh updates for each frame that tracks the detected shape of a hand.

public:
 virtual HandMeshObserver ^ TryCreateHandMeshObserver() = TryCreateHandMeshObserver;
HandMeshObserver TryCreateHandMeshObserver();
public HandMeshObserver TryCreateHandMeshObserver();
function tryCreateHandMeshObserver()
Public Function TryCreateHandMeshObserver () As HandMeshObserver

Returns

A hand mesh observer if this source supports hand meshes; otherwise, null.

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Remarks

It can take more than a frame to initialize the app's subscription to hand mesh updates.

You should call this synchronous method only from a background thread. If you are calling from a UI thread, render thread or update thread, you should call the asynchronous TryCreateHandMeshObserverAsync method instead.

Applies to