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

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


InspectorUIUtility.RenderIndentedButton Method

Definition

Overloads

RenderIndentedButton(Func<Boolean>)

Helper function to support primary overloaded version of this functionality

RenderIndentedButton(String, GUILayoutOption[])

Helper function to render buttons correctly indented according to EditorGUI.indentLevel since GUILayout component don't respond naturally

RenderIndentedButton(GUIContent, GUIStyle, GUILayoutOption[])

Helper function to render buttons correctly indented according to EditorGUI.indentLevel since GUILayout component don't respond naturally

RenderIndentedButton(Func<Boolean>)

Helper function to support primary overloaded version of this functionality

C++
public:
 static bool RenderIndentedButton(Func<bool> ^ renderButton);

Parameters

renderButton
Func<Boolean>

The code to render button correctly based on parameter types passed

Returns

true if button clicked, false if 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

RenderIndentedButton(String, GUILayoutOption[])

Helper function to render buttons correctly indented according to EditorGUI.indentLevel since GUILayout component don't respond naturally

C++
public:
 static bool RenderIndentedButton(System::String ^ buttonText, ... cli::array <UnityEngine::GUILayoutOption ^> ^ options);

Parameters

buttonText
String

text to place in button

options
UnityEngine.GUILayoutOption[]

layout options

Returns

true if button clicked, false if 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

RenderIndentedButton(GUIContent, GUIStyle, GUILayoutOption[])

Helper function to render buttons correctly indented according to EditorGUI.indentLevel since GUILayout component don't respond naturally

C++
public:
 static bool RenderIndentedButton(UnityEngine::GUIContent ^ content, UnityEngine::GUIStyle ^ style, ... cli::array <UnityEngine::GUILayoutOption ^> ^ options);

Parameters

content
UnityEngine.GUIContent

What to draw in button

style
UnityEngine.GUIStyle

Style configuration for button

options
UnityEngine.GUILayoutOption[]

layout options

Returns

true if button clicked, false if 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