Guilayoutoption

Posted on by
  1. Gui Unity
  2. Guilayoutoption Color
  3. Guilayoutoption Rect
  4. Unity Guilayoutoption
  5. 유니티 Guilayoutoption
  6. Guilayoutoption
  7. Guilayoutoption Height

This class has handy inspector UI utilities and functions.

Inheritance
InspectorUIUtility
Inherited Members

Text: Text to display on the button. Image: Texture to display on the button.: content: Text, image and tooltip for this button. Style: The style to use. If left out, the button style from the current GUISkin is used.: options: An optional list of layout options that specify extra layouting properties. DustGUI is library for simplify usage of Unity GUI elements from GUI, GUILayout and EditorGUILayout classes. New GUI elements. DustGUI provides a few new components: DustGUI.ExtraSlider - extended float-slider supporting out-of-slider-range values; DustGUI.ExtraIntSlider - extended int-slider supporting out-of-slider-range values; Builders.

Namespace: Microsoft.MixedReality.Toolkit.Utilities.Editor
Assembly: cs.temp.dll.dll
Syntax

Fields

Astrisk

Declaration
Field Value
TypeDescription
String

Close

Declaration
Field Value
TypeDescription
String

DefaultFontSize

Declaration
Field Value
TypeDescription
Int32

DocLinkWidth

Declaration
Field Value
TypeDescription
Single

Down

Declaration
Field Value
TypeDescription
String

Emoji

Declaration
Field Value
TypeDescription
String

HeaderFontSize

Declaration
Field Value
TypeDescription
Int32

Heart

Declaration
Field Value
TypeDescription
String

HelpIcon

Declaration
Field Value
TypeDescription
Texture

InfoIcon

Declaration
Field Value
TypeDescription
Texture

Left

Declaration
Field Value
TypeDescription
String

Minus

Declaration
Field Value
TypeDescription
String

Plus

Declaration
Field Value
TypeDescription
String

Right

Gui Unity

Declaration
Field Value
TypeDescription
String

Star

Declaration
Field Value
TypeDescription
String

SuccessIcon

Declaration
Field Value
TypeDescription
Texture

TitleFontSize

Declaration
Field Value
TypeDescription
Int32

Up

Declaration
Field Value
TypeDescription
String

WarningIcon

Declaration
Field Value
TypeDescription
Texture

Properties

ColorTint10

Declaration
Property Value
TypeDescription
Color

ColorTint100

Declaration
Property Value
TypeDescription
Color

ColorTint25

Declaration
Property Value
TypeDescription
Color

ColorTint50

Declaration
Property Value
TypeDescription
Color

ColorTint75

Declaration
Property Value
TypeDescription
Color

Methods

AdjustListSettings(List<InspectorUIUtility.ListSettings>, Int32)

Declaration
Parameters
TypeNameDescription
List<InspectorUIUtility.ListSettings>listSettings
Int32count
Returns
TypeDescription
List<InspectorUIUtility.ListSettings>

Box(Int32)

Box style with left margin

Declaration
Parameters
TypeNameDescription
Int32margin

Guilayoutoption Color

Returns
TypeDescription
GUIStyle

DrawDivider()

Declaration

DrawEnumSerializedProperty(Rect, SerializedProperty, GUIContent, Enum)

Draws a popup UI with PropertyField type features.Displays prefab pending updates

Declaration
Parameters
TypeNameDescription
Rectposition

position to render the serialized property

SerializedPropertyprop

serialized property corresponding to Enum

GUIContentlabel

label for property

EnumpropValue

Current enum value for property Weed whipped.

Returns
TypeDescription
Enum

New enum value after draw

DrawEnumSerializedProperty(SerializedProperty, GUIContent, Enum)

Draws a popup UI with PropertyField type features.Displays prefab pending updates

Declaration
Parameters
TypeNameDescription
SerializedPropertyprop

serialized property corresponding to Enum

GUIContentlabel

label for property

EnumpropValue

Current enum value for property

Returns
TypeDescription
Enum

New enum value after draw

DrawError(String)

Declaration
Parameters
TypeNameDescription
Stringerror

DrawHeader(String)

Medium title format

Declaration
Parameters
TypeNameDescription
Stringheader

string content to render

DrawLabel(String, Int32, Color)

Declaration
Parameters
TypeNameDescription
Stringtitle
Int32size
Colorcolor

DrawNotice(String)

draw a notice area, normal coloring

Declaration
Parameters
TypeNameDescription
Stringnotice

DrawSectionFoldout(String, Boolean, GUIStyle)

Draws a section start (initiated by the Header attribute)

Declaration
Parameters
TypeNameDescription
StringheaderName
Booleanopen
GUIStylestyle
Returns
TypeDescription
Boolean

DrawSectionFoldoutWithKey(String, String, GUIStyle, Boolean)

Draws a section start with header name and save open/close state to given preference key in SessionState

Declaration
Parameters
TypeNameDescription
StringheaderName
StringpreferenceKey
GUIStylestyle
BooleandefaultOpen
Returns
TypeDescription
Boolean

DrawSuccess(String)

Declaration
Parameters
TypeNameDescription
Stringnotice

DrawTitle(String)

Large title format

Declaration
Parameters
TypeNameDescription
Stringtitle

DrawWarning(String)

Declaration
Parameters
TypeNameDescription
Stringwarning

FlexButton(GUIContent)

A button that is as wide as the label

Declaration
Parameters
TypeNameDescription
GUIContentlabel

content for button

Returns
TypeDescription
Boolean

true if button clicked, false otherwise

FlexButton(GUIContent, Int32, InspectorUIUtility.ListButtonEvent, SerializedProperty)

Declaration
Parameters
TypeNameDescription
GUIContentlabel
Int32index
InspectorUIUtility.ListButtonEventcallback
SerializedPropertyprop
Returns
TypeDescription
Boolean

FlexButton(GUIContent, Int32[], InspectorUIUtility.MultiListButtonEvent, SerializedProperty)

A button that is as wide as the label

Declaration
Parameters
TypeNameDescription
GUIContentlabel
Int32[]indexArr
InspectorUIUtility.MultiListButtonEventcallback
SerializedPropertyprop
Returns
TypeDescription
Boolean

true if button clicked, false otherwise

FullWidthButton(GUIContent, Single, Int32, InspectorUIUtility.ListButtonEvent, SerializedProperty)

Declaration
Parameters
TypeNameDescription
GUIContentlabel
Singlepadding
Int32index
InspectorUIUtility.ListButtonEventcallback
SerializedPropertyprop
Returns
TypeDescription
Boolean

FullWidthButton(GUIContent, Single, Int32[], InspectorUIUtility.MultiListButtonEvent, SerializedProperty)

A button that is as wide as the available space

Declaration
Parameters
TypeNameDescription
GUIContentlabel
Singlepadding
Int32[]indexArr
InspectorUIUtility.MultiListButtonEventcallback
SerializedPropertyprop
Returns
TypeDescription
Boolean

GetOptions(SerializedProperty)

Get an array of strings from a serialized list of strings, pop-up field helper

Declaration
Parameters
TypeNameDescription
SerializedPropertyoptions
Returns
TypeDescription
String[]

GetOptionsIndex(SerializedProperty, String)

Get the index of a serialized array item based on it's name, pop-up field helper

Declaration
Parameters
TypeNameDescription
SerializedPropertyoptions
Stringselection
Returns
TypeDescription
Int32

HelpBox(Int32)

Declaration
Parameters
TypeNameDescription
Int32margin

amount of left margin

Returns
TypeDescription
GUIStyle

Configured helpbox GUIStyle

LableStyle(Int32, Color)

Create a custom label style based on color and size

Declaration
Parameters
TypeNameDescription
Int32size
Colorcolor
Returns
TypeDescription
GUIStyle

RenderDocumentationButton(String, Single)

Render documentation button routing to relevant URI

Declaration
Parameters
TypeNameDescription
StringdocURL

documentation URL to open on button click

Singlewidth
Returns
TypeDescription
Boolean

true if button clicked, false otherwise

RenderDocumentationSection(String)

Render a documentation header with button for given url value

Declaration
Parameters
TypeNameDescription
Stringurl

Url to open if button is clicked

Returns
TypeDescription
Boolean

true if object drawn and button clicked, false otherwise

RenderHelpURL(Type)

Render a documentation header with button if Object contains HelpURLAttribute

Declaration
Parameters
TypeNameDescription
TypetargetType

Type to test for HelpURLAttribute

Returns
TypeDescription
Boolean

true if object drawn and button clicked, false otherwise

RenderIndentedButton(Func<Boolean>)

Helper function to support primary overloaded version of this functionality

Declaration
Parameters
TypeNameDescription
Func<Boolean>renderButton

The code to render button correctly based on parameter types passed

Returns
TypeDescription
Boolean

true if button clicked, false if otherwise

Color

RenderIndentedButton(GUIContent, GUIStyle, GUILayoutOption[])

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

Declaration
Parameters
TypeNameDescription
GUIContentcontent

What to draw in button

GUIStylestyle

Style configuration for button

GUILayoutOption[]options

layout options

Returns
TypeDescription
Boolean

true if button clicked, false if otherwise

RenderIndentedButton(String, GUILayoutOption[])

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

Declaration
Parameters

Guilayoutoption Rect

TypeNameDescription
StringbuttonText

text to place in button

GUILayoutOption[]options

layout options

Returns
TypeDescription
Boolean

true if button clicked, false if otherwise

SmallButton(GUIContent)

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

Unity Guilayoutoption

Declaration
Parameters
TypeNameDescription
GUIContentlabel

content to place in the button

Returns
TypeDescription
Boolean

true if button selected, false otherwise

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

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

Declaration
Parameters
TypeNameDescription
GUIContentlabel

content to place in the button

Int32index
InspectorUIUtility.ListButtonEventcallback
SerializedPropertyprop
Returns
TypeDescription
Boolean

true if button selected, false otherwise

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

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

유니티 Guilayoutoption

Declaration
Parameters

Guilayoutoption

TypeNameDescription
GUIContentlabel

content to place in the button

Int32[]indexArr
InspectorUIUtility.MultiListButtonEventcallback
SerializedPropertyprop

Guilayoutoption Height

Returns
TypeDescription
Boolean

true if button selected, false otherwise