InspectorUIUtility.FlexButton Method
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.
FlexButton(GUIContent, Int32[], InspectorUIUtility+MultiListButtonEvent, SerializedProperty) |
A button that is as wide as the label |
FlexButton(GUIContent, Int32, InspectorUIUtility+ListButtonEvent, SerializedProperty) |
A button that is as wide as the label |
FlexButton(GUIContent) |
A button that is as wide as the label |
A button that is as wide as the label
C#
public static bool FlexButton (UnityEngine.GUIContent label, int[] indexArr, Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorUIUtility.MultiListButtonEvent callback, UnityEditor.SerializedProperty prop = default);
static member FlexButton : UnityEngine.GUIContent * int[] * Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorUIUtility.MultiListButtonEvent * UnityEditor.SerializedProperty -> bool
Public Shared Function FlexButton (label As GUIContent, indexArr As Integer(), callback As InspectorUIUtility.MultiListButtonEvent, Optional prop As SerializedProperty = Nothing) As Boolean
Parameters
- label
- UnityEngine.GUIContent
- indexArr
- Int32[]
- prop
- UnityEditor.SerializedProperty
Returns
true if button clicked, false otherwise
Applies to
MRTK2 Unity 2018 2.7.0 a ďalšie verzie
Produkt | Verzie |
---|---|
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 |
A button that is as wide as the label
C#
public static bool FlexButton (UnityEngine.GUIContent label, int index, Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorUIUtility.ListButtonEvent callback, UnityEditor.SerializedProperty prop = default);
static member FlexButton : UnityEngine.GUIContent * int * Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorUIUtility.ListButtonEvent * UnityEditor.SerializedProperty -> bool
Public Shared Function FlexButton (label As GUIContent, index As Integer, callback As InspectorUIUtility.ListButtonEvent, Optional prop As SerializedProperty = Nothing) As Boolean
Parameters
- label
- UnityEngine.GUIContent
- index
- Int32
- callback
- InspectorUIUtility.ListButtonEvent
- prop
- UnityEditor.SerializedProperty
Returns
Applies to
MRTK2 Unity 2018 2.7.0 a ďalšie verzie
Produkt | Verzie |
---|---|
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 |
A button that is as wide as the label
public:
static bool FlexButton(UnityEngine::GUIContent ^ label);
C#
public static bool FlexButton (UnityEngine.GUIContent label);
static member FlexButton : UnityEngine.GUIContent -> bool
Public Shared Function FlexButton (label As GUIContent) As Boolean
Parameters
- label
- UnityEngine.GUIContent
content for button
Returns
true if button clicked, false otherwise
Applies to
MRTK2 Unity 2018 2.7.0 a ďalšie verzie
Produkt | Verzie |
---|---|
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 |