Editar

Compartir a través de


PointerUtils.SetPointerBehavior Method

Definition

Overloads

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.

SetPointerBehavior<T>(PointerBehavior, Handedness)

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

SetPointerBehavior<T>(PointerBehavior, InputSourceType, Handedness)

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