Прочетете на английски Редактиране

Споделяне чрез


InspectorUIUtility.SmallButton Method

Definition

Overloads

SmallButton(GUIContent)

A small button, good for a single icon like + or -

SmallButton(GUIContent, Int32, InspectorUIUtility+ListButtonEvent, SerializedProperty)

A small button, good for a single icon like + or - with single index callback events

SmallButton(GUIContent, Int32[], InspectorUIUtility+MultiListButtonEvent, SerializedProperty)

A small button, good for a single icon like + or - with multi-index callback events

SmallButton(GUIContent)

A small button, good for a single icon like + or -

C++
public:
 static bool SmallButton(UnityEngine::GUIContent ^ label);

Parameters

label
UnityEngine.GUIContent

content to place in the button

Returns

true if button selected, false otherwise

Applies to

MRTK2 Unity 2018 2.7.0 и други версии
Продукт Версии
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

SmallButton(GUIContent, Int32, InspectorUIUtility+ListButtonEvent, SerializedProperty)

A small button, good for a single icon like + or - with single index callback events

C#
public static bool SmallButton (UnityEngine.GUIContent label, int index, Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorUIUtility.ListButtonEvent callback, UnityEditor.SerializedProperty prop = default);

Parameters

label
UnityEngine.GUIContent

content to place in the button

index
Int32
prop
UnityEditor.SerializedProperty

Returns

true if button selected, false otherwise

Applies to

MRTK2 Unity 2018 2.7.0 и други версии
Продукт Версии
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

SmallButton(GUIContent, Int32[], InspectorUIUtility+MultiListButtonEvent, SerializedProperty)

A small button, good for a single icon like + or - with multi-index callback events

C#
public static bool SmallButton (UnityEngine.GUIContent label, int[] indexArr, Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorUIUtility.MultiListButtonEvent callback, UnityEditor.SerializedProperty prop = default);

Parameters

label
UnityEngine.GUIContent

content to place in the button

indexArr
Int32[]
prop
UnityEditor.SerializedProperty

Returns

true if button selected, false otherwise

Applies to

MRTK2 Unity 2018 2.7.0 и други версии
Продукт Версии
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