PointerUtils.SetPointerBehavior 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.
SetPointerBehavior<T>(PointerBehavior, Handedness) |
Sets the pointer behavior for pointer of type T, for all input types. |
SetPointerBehavior<T>(PointerBehavior, InputSourceType, Handedness) |
Sets the behavior for the given pointer type and input type. |
Sets the pointer behavior for pointer of type T, for all input types.
public static void SetPointerBehavior<T> (Microsoft.MixedReality.Toolkit.Input.PointerBehavior pointerBehavior, Microsoft.MixedReality.Toolkit.Utilities.Handedness handedness = Microsoft.MixedReality.Toolkit.Utilities.Handedness.Any) where T : class, Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer;
static member SetPointerBehavior : Microsoft.MixedReality.Toolkit.Input.PointerBehavior * Microsoft.MixedReality.Toolkit.Utilities.Handedness -> unit (requires 'T : null and 'T :> Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer)
Public Shared Sub SetPointerBehavior(Of T As {Class, IMixedRealityPointer}) (pointerBehavior As PointerBehavior, Optional handedness As Handedness = Microsoft.MixedReality.Toolkit.Utilities.Handedness.Any)
Type Parameters
- T
All pointer types that equal or derive from this type will be set.
Parameters
- pointerBehavior
- PointerBehavior
Desired .
- handedness
- Handedness
Specify handedness to restrict to only right, left.
Applies to
MRTK2 Unity 2018 2.7.0 et autres versions
Produit | Versions |
---|---|
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 |
Sets the behavior for the given pointer type and input type.
public static void SetPointerBehavior<T> (Microsoft.MixedReality.Toolkit.Input.PointerBehavior pointerBehavior, Microsoft.MixedReality.Toolkit.Input.InputSourceType sourceType, Microsoft.MixedReality.Toolkit.Utilities.Handedness handedness = Microsoft.MixedReality.Toolkit.Utilities.Handedness.Any) where T : class, Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer;
static member SetPointerBehavior : Microsoft.MixedReality.Toolkit.Input.PointerBehavior * Microsoft.MixedReality.Toolkit.Input.InputSourceType * Microsoft.MixedReality.Toolkit.Utilities.Handedness -> unit (requires 'T : null and 'T :> Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer)
Public Shared Sub SetPointerBehavior(Of T As {Class, IMixedRealityPointer}) (pointerBehavior As PointerBehavior, sourceType As InputSourceType, Optional handedness As Handedness = Microsoft.MixedReality.Toolkit.Utilities.Handedness.Any)
Type Parameters
- T
All pointer types that equal or derive from this type will be set.
Parameters
- pointerBehavior
- PointerBehavior
Desired .
- sourceType
- InputSourceType
Allows setting different behaviors for different input types (hands, controllers, etc.)
- handedness
- Handedness
Specify handedness to restrict to only right, left.
Applies to
MRTK2 Unity 2018 2.7.0 et autres versions
Produit | Versions |
---|---|
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 |