Interactable.ButtonMode Property

Definition

Returns the current selection mode of the Interactable based on the number of Dimensions available

C++
public:
 property Microsoft::MixedReality::Toolkit::UI::SelectionModes ButtonMode { Microsoft::MixedReality::Toolkit::UI::SelectionModes get(); };

Property Value

Remarks

Returns the following under the associated conditions:

SelectionModes.Invalid => Dimensions less than or equal to 0

SelectionModes.Button => Dimensions == 1

SelectionModes.Toggle => Dimensions == 2

SelectionModes.MultiDimension => Dimensions > 2

Applies to

Product 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