HandConstraint.ToggleCursors(IMixedRealityController, Boolean, Boolean) Method

Definition

Enables/disables all cursors on the currently tracked hand.

protected virtual System.Collections.IEnumerator ToggleCursors (Microsoft.MixedReality.Toolkit.Input.IMixedRealityController controller, bool visible, bool frameDelay = false);
abstract member ToggleCursors : Microsoft.MixedReality.Toolkit.Input.IMixedRealityController * bool * bool -> System.Collections.IEnumerator
override this.ToggleCursors : Microsoft.MixedReality.Toolkit.Input.IMixedRealityController * bool * bool -> System.Collections.IEnumerator
Protected Iterator Overridable Function ToggleCursors (controller As IMixedRealityController, visible As Boolean, Optional frameDelay As Boolean = false) As IEnumerator

Parameters

controller
IMixedRealityController

Controller target to search for pointers

visible
Boolean

Is the cursor visible?

frameDelay
Boolean

Delay one frame before performing the toggle to allow the pointers to instantiate their cursors.

Returns

IEnumerator

Applies to