編輯

共用方式為


InteractionSourceExtensions.GetSpatialInteractionSource Method

Definition

Gets the current native SpatialInteractionSource for this InteractionSource.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Windows::UI::Input::Spatial::SpatialInteractionSource ^ GetSpatialInteractionSource(UnityEngine::XR::WSA::Input::InteractionSource interactionSource);
public static Microsoft.Windows.UI.Input.Spatial.SpatialInteractionSource GetSpatialInteractionSource (this UnityEngine.XR.WSA.Input.InteractionSource interactionSource);
static member GetSpatialInteractionSource : UnityEngine.XR.WSA.Input.InteractionSource -> Microsoft.Windows.UI.Input.Spatial.SpatialInteractionSource
<Extension()>
Public Function GetSpatialInteractionSource (interactionSource As InteractionSource) As SpatialInteractionSource

Parameters

interactionSource
UnityEngine.XR.WSA.Input.InteractionSource

The InteractionSource to search for via the native Windows APIs.

Returns

Microsoft.Windows.UI.Input.Spatial.SpatialInteractionSource

The current native SpatialInteractionSource.

Applies to