Share via


SpatialInteractionController.TryGetRenderableModelAsync Method

Definition

Gets a renderable model stream for this controller, which can be unpacked and rendered to represent this controller.

public:
 virtual IAsyncOperation<IRandomAccessStreamWithContentType ^> ^ TryGetRenderableModelAsync() = TryGetRenderableModelAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IRandomAccessStreamWithContentType> TryGetRenderableModelAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IRandomAccessStreamWithContentType> TryGetRenderableModelAsync();
function tryGetRenderableModelAsync()
Public Function TryGetRenderableModelAsync () As IAsyncOperation(Of IRandomAccessStreamWithContentType)

Returns

Operation that triggers once the renderable model stream is loaded, yielding the stream or null if there is no model available.

Attributes

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Remarks

The model stream is returned as a glTF 2.0 Core binary file. Apps may articulate the model to match the motion of the controller's component parts by updating the transforms of the nodes in the model's internal hierarchy.

Applies to