Redigera

Dela via


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 -

public:
 static bool SmallButton(UnityEngine::GUIContent ^ label);
public static bool SmallButton (UnityEngine.GUIContent label);
static member SmallButton : UnityEngine.GUIContent -> bool
Public Shared Function SmallButton (label As GUIContent) As Boolean

Parameters

label
UnityEngine.GUIContent

content to place in the button

Returns

true if button selected, false otherwise

Applies to

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

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

public static bool SmallButton (UnityEngine.GUIContent label, int index, Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorUIUtility.ListButtonEvent callback, UnityEditor.SerializedProperty prop = default);
static member SmallButton : UnityEngine.GUIContent * int * Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorUIUtility.ListButtonEvent * UnityEditor.SerializedProperty -> bool
Public Shared Function SmallButton (label As GUIContent, index As Integer, callback As InspectorUIUtility.ListButtonEvent, Optional prop As SerializedProperty = Nothing) As Boolean

Parameters

label
UnityEngine.GUIContent

content to place in the button

index
Int32
prop
UnityEditor.SerializedProperty

Returns

true if button selected, false otherwise

Applies to

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

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

public static bool SmallButton (UnityEngine.GUIContent label, int[] indexArr, Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorUIUtility.MultiListButtonEvent callback, UnityEditor.SerializedProperty prop = default);
static member SmallButton : UnityEngine.GUIContent * int[] * Microsoft.MixedReality.Toolkit.Utilities.Editor.InspectorUIUtility.MultiListButtonEvent * UnityEditor.SerializedProperty -> bool
Public Shared Function SmallButton (label As GUIContent, indexArr As Integer(), callback As InspectorUIUtility.MultiListButtonEvent, Optional prop As SerializedProperty = Nothing) As Boolean

Parameters

label
UnityEngine.GUIContent

content to place in the button

indexArr
Int32[]
prop
UnityEditor.SerializedProperty

Returns

true if button selected, false otherwise

Applies to