Edit

Share via


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

public:
 static bool RenderIndentedButton(Func<bool> ^ renderButton);
public static bool RenderIndentedButton (Func<bool> renderButton);
static member RenderIndentedButton : Func<bool> -> bool
Public Shared Function RenderIndentedButton (renderButton As Func(Of Boolean)) As Boolean

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

RenderIndentedButton(String, GUILayoutOption[])

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

public:
 static bool RenderIndentedButton(System::String ^ buttonText, ... cli::array <UnityEngine::GUILayoutOption ^> ^ options);
public static bool RenderIndentedButton (string buttonText, params UnityEngine.GUILayoutOption[] options);
static member RenderIndentedButton : string * UnityEngine.GUILayoutOption[] -> bool
Public Shared Function RenderIndentedButton (buttonText As String, ParamArray options As GUILayoutOption()) As Boolean

Parameters

buttonText
String

text to place in button

options
UnityEngine.GUILayoutOption[]

layout options

Returns

true if button clicked, false if otherwise

Applies to

RenderIndentedButton(GUIContent, GUIStyle, GUILayoutOption[])

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

public:
 static bool RenderIndentedButton(UnityEngine::GUIContent ^ content, UnityEngine::GUIStyle ^ style, ... cli::array <UnityEngine::GUILayoutOption ^> ^ options);
public static bool RenderIndentedButton (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, params UnityEngine.GUILayoutOption[] options);
static member RenderIndentedButton : UnityEngine.GUIContent * UnityEngine.GUIStyle * UnityEngine.GUILayoutOption[] -> bool
Public Shared Function RenderIndentedButton (content As GUIContent, style As GUIStyle, ParamArray options As GUILayoutOption()) As Boolean

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