HandConstraint.ToggleCursors Method

Definition

Enables/disables all cursors on the currently tracked hand.

C#
protected virtual System.Collections.IEnumerator ToggleCursors (Microsoft.MixedReality.Toolkit.Input.IMixedRealityController controller, bool visible, bool frameDelay = false);

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

Applies to

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