SpatialInteractionSource.TryCreateHandMeshObserver Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.