Interactable.ButtonMode Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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(); };
public Microsoft.MixedReality.Toolkit.UI.SelectionModes ButtonMode { get; }
member this.ButtonMode : Microsoft.MixedReality.Toolkit.UI.SelectionModes
Public ReadOnly Property ButtonMode As SelectionModes
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
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 |