HandJointUtils.FindHand Method
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.
FindHand(Handedness) |
Find the first detected hand controller with matching handedness. |
FindHand<T>(Handedness) |
Find the first detected hand controller of the given type with matching handedness. |
Find the first detected hand controller with matching handedness.
C++
public:
static Microsoft::MixedReality::Toolkit::Input::IMixedRealityHand ^ FindHand(Microsoft::MixedReality::Toolkit::Utilities::Handedness handedness);
public static Microsoft.MixedReality.Toolkit.Input.IMixedRealityHand FindHand (Microsoft.MixedReality.Toolkit.Utilities.Handedness handedness);
static member FindHand : Microsoft.MixedReality.Toolkit.Utilities.Handedness -> Microsoft.MixedReality.Toolkit.Input.IMixedRealityHand
Public Shared Function FindHand (handedness As Handedness) As IMixedRealityHand
Parameters
- handedness
- Handedness
Returns
Remarks
The given handedness should be either Handedness.Left or Handedness.Right.
Applies to
MRTK2 Unity 2018 2.7.0 a ďalšie verzie
Produkt | Verzie |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
Find the first detected hand controller of the given type with matching handedness.
C++
public:
generic <typename T>
where T : class, Microsoft::MixedReality::Toolkit::Input::IMixedRealityHand static T FindHand(Microsoft::MixedReality::Toolkit::Utilities::Handedness handedness);
public static T FindHand<T> (Microsoft.MixedReality.Toolkit.Utilities.Handedness handedness) where T : class, Microsoft.MixedReality.Toolkit.Input.IMixedRealityHand;
static member FindHand : Microsoft.MixedReality.Toolkit.Utilities.Handedness -> 'T (requires 'T : null and 'T :> Microsoft.MixedReality.Toolkit.Input.IMixedRealityHand)
Public Shared Function FindHand(Of T As {Class, IMixedRealityHand}) (handedness As Handedness) As T
Type Parameters
- T
Parameters
- handedness
- Handedness
Returns
T
Applies to
MRTK2 Unity 2018 2.7.0 a ďalšie verzie
Produkt | Verzie |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |