Class PointerBehaviorControls
Utility class to control Pointer
Namespace: Microsoft.MixedReality.Toolkit.UI
Assembly: cs.temp.dll.dll
Syntax
public class PointerBehaviorControls : MonoBehaviour
Methods
SetControllerRayEnabled(Boolean)
Sets the Pointer
Declaration
public void SetControllerRayEnabled(bool isEnabled)
Parameters
Type | Name | Description |
---|---|---|
Boolean | isEnabled |
SetFingerOnly()
Sets pointer states to turn off all but the poke pointer
Declaration
public void SetFingerOnly()
SetGazeEnabled(Boolean)
Sets the Pointer
Declaration
public void SetGazeEnabled(bool isEnabled)
Parameters
Type | Name | Description |
---|---|---|
Boolean | isEnabled |
SetGrabEnabled(Boolean)
Sets the Pointer
Declaration
public void SetGrabEnabled(bool isEnabled)
Parameters
Type | Name | Description |
---|---|---|
Boolean | isEnabled |
SetHandRayEnabled(Boolean)
Sets the Pointer
Declaration
public void SetHandRayEnabled(bool isEnabled)
Parameters
Type | Name | Description |
---|---|---|
Boolean | isEnabled |
SetHoloLens1()
Sets pointer behavior to mimic HoloLens 1 interactions, useful for using HoloLens 1 interactions on HoloLens 2. PokePointer will be off GrabPointer will be off HandRayPointer will be off MotionControllerRayPointer will be off GazePointer will be Default
Declaration
public void SetHoloLens1()
SetHoloLens2()
Sets pointer behavior to mimic HoloLens 2 PokePointer will be Default GrabPointer will be Default HandRayPointer will be Default MotionControllerRayPointer will be off GazePointer will be Off
Declaration
public void SetHoloLens2()
SetPokeEnabled(Boolean)
Sets the Pointer
Declaration
public void SetPokeEnabled(bool isEnabled)
Parameters
Type | Name | Description |
---|---|---|
Boolean | isEnabled |
SetVR()
Sets pointer states to mimic traditional vr behavior. PokePointer will be off GrabPointer will be off HandRayPointer will be off MotionControllerRayPointer will be Default GazePointef will be off
Declaration
public void SetVR()
ToggleControllerRayEnabled()
If controller ray Pointer
Declaration
public void ToggleControllerRayEnabled()
ToggleHandGrabEnabled()
If hand grab pointer Pointer
Declaration
public void ToggleHandGrabEnabled()
ToggleHandPokeEnabled()
If finger poke pointer Pointer
Declaration
public void ToggleHandPokeEnabled()
ToggleHandRayEnabled()
If hand ray Pointer
Declaration
public void ToggleHandRayEnabled()
TogglePointerEnabled<T>(InputSourceType)
Toggles a pointer's "enabled" behavior. If a pointer's Pointer
Declaration
public void TogglePointerEnabled<T>(InputSourceType inputType)
where T : class, IMixedRealityPointer
Parameters
Type | Name | Description |
---|---|---|
Input |
inputType | Input type of pointer to set |
Type Parameters
Name | Description |
---|---|
T | Type of pointer to set |