Namespace: | Sirenix.Utilities.Editor |
Assembly: | Sirenix.Utilities.Editor |
public static class SirenixEditorGUI
public static float currentDrawingToolbarHeight
public const string MixedValueDashChar = "—"
public static float DefaultFadeGroupDuration { get; set; }
public static bool ExpandFoldoutByDefault { get; set; }
public static int FoldoutWidth { get; }
public static float ShakingAnimationDuration { get; set; }
public static bool ShowButtonResultsByDefault { get; set; }
public static float TabPageSlideAnimationDuration { get; set; }
public static Rect BeginBox(string label, bool centerLabel = false, params GUILayoutOption[] options)
System.String | label | The label of the box. |
System.Boolean | centerLabel | If set to |
UnityEngine.GUILayoutOption[] | options | The GUI layout options. |
UnityEngine.Rect |
public static Rect BeginBox(GUIContent label, bool centerLabel = false, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | The label of the box. |
System.Boolean | centerLabel | If set to |
UnityEngine.GUILayoutOption[] | options | The GUI layout options. |
UnityEngine.Rect | The rect of the box. |
public static Rect BeginBox(params GUILayoutOption[] options)
UnityEngine.GUILayoutOption[] | options | The GUI layout options. |
UnityEngine.Rect |
public static Rect BeginBoxHeader()
UnityEngine.Rect |
public static bool BeginFadeGroup(object key, bool isVisible)
System.Object | key | The key for the fade group. |
System.Boolean | isVisible | Current state of the fade group. |
System.Boolean |
public static bool BeginFadeGroup(object key, bool isVisible, float duration)
System.Object | key | The key for the fade group. |
System.Boolean | isVisible | Current state of the fade group. |
System.Single | duration | The duration of fade in and out. |
System.Boolean |
public static bool BeginFadeGroup(object key, bool isVisible, out float t)
System.Object | key | The key for the fade group. |
System.Boolean | isVisible | Current state of the fade group. |
System.Single | t | A value between 0 and 1 indicating how expanded the fade group is. |
System.Boolean |
public static bool BeginFadeGroup(object key, bool isVisible, out float t, float duration)
System.Object | key | The key for the fade group. |
System.Boolean | isVisible | Current state of the fade group. |
System.Single | t | A value between 0 and 1 indicating how expanded the fade group is. |
System.Single | duration | The duration of fade in and out. |
System.Boolean |
public static bool BeginFadeGroup(object primaryKey, object secondaryKey, bool isVisible)
System.Object | primaryKey | The primary key for the fade group. |
System.Object | secondaryKey | The secondly key for the fade group. |
System.Boolean | isVisible | Current state of the fade group. |
System.Boolean |
public static bool BeginFadeGroup(object primaryKey, object secondaryKey, bool isVisible, float duration)
System.Object | primaryKey | The primary key for the fade group. |
System.Object | secondaryKey | The secondly key for the fade group. |
System.Boolean | isVisible | Current state of the fade group. |
System.Single | duration | The duration of fade in and out. |
System.Boolean |
public static bool BeginFadeGroup(object key, string name, bool isVisible)
System.Object | key | The key for the fade group. |
System.String | name | The name of the fade group. |
System.Boolean | isVisible | Current state of the fade group. |
System.Boolean |
public static bool BeginFadeGroup(object key, string name, bool isVisible, float duration)
System.Object | key | The key for the fade group. |
System.String | name | The name of the fade group. |
System.Boolean | isVisible | Current state of the fade group. |
System.Single | duration | The duration of fade in and out. |
System.Boolean |
public static bool BeginFadeGroup(float t)
System.Single | t | The current fading value between 0 and 1. |
System.Boolean |
public static Rect BeginHorizontalAutoScrollBox(object key, params GUILayoutOption[] options)
System.Object | key | The for the field. |
UnityEngine.GUILayoutOption[] | options | The GUILayout options. |
UnityEngine.Rect | The rect used for the field. |
public static Rect BeginHorizontalPropertyLayout(GUIContent label)
UnityEngine.GUIContent | label |
UnityEngine.Rect |
public static Rect BeginHorizontalPropertyLayout(GUIContent label, out Rect labelRect)
UnityEngine.GUIContent | label | |
UnityEngine.Rect | labelRect |
UnityEngine.Rect |
public static Rect BeginHorizontalToolbar(float height = 22F, int paddingTop = 4)
System.Single | height | The height of the toolbar. |
System.Int32 | paddingTop | Padding for the top of the toolbar. |
UnityEngine.Rect | The rect of the horizontal toolbar. |
public static Rect BeginHorizontalToolbar(GUIStyle style, float height = 22F, int topPadding = 4)
UnityEngine.GUIStyle | style | The style for the toolbar. |
System.Single | height | The height of the toolbar. |
System.Int32 | topPadding | The top padding. |
UnityEngine.Rect | The rect of the horizontal toolbar. |
public static Rect BeginHorizontalWithoutUsingControlID(GUIStyle style, params GUILayoutOption[] options)
UnityEngine.GUIStyle | style | |
UnityEngine.GUILayoutOption[] | options |
UnityEngine.Rect |
public static void BeginIndentedHorizontal(params GUILayoutOption[] options)
UnityEngine.GUILayoutOption[] | options | The GUI layout options. |
public static void BeginIndentedHorizontal(GUIStyle style, params GUILayoutOption[] options)
UnityEngine.GUIStyle | style | The style of the indentation. |
UnityEngine.GUILayoutOption[] | options | The GUI layout options. |
public static Rect BeginIndentedVertical(params GUILayoutOption[] options)
UnityEngine.GUILayoutOption[] | options | The GUI layout options. |
UnityEngine.Rect |
public static Rect BeginIndentedVertical(GUIStyle style, params GUILayoutOption[] options)
UnityEngine.GUIStyle | style | The style of the indentation. |
UnityEngine.GUILayoutOption[] | options | The GUI layout options. |
UnityEngine.Rect |
public static Rect BeginInlineBox(params GUILayoutOption[] options)
UnityEngine.GUILayoutOption[] | options | The GUI layout options. |
UnityEngine.Rect | The rect of the box. |
public static Rect BeginLegendBox(string label, bool centerLabel = false, params GUILayoutOption[] options)
System.String | label | The label for the legend style box. |
System.Boolean | centerLabel | If |
UnityEngine.GUILayoutOption[] | options | GUILayout options. |
UnityEngine.Rect | The rect of the box. |
public static Rect BeginLegendBox(GUIContent label, bool centerLabel = false, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | The label for the legend style box. |
System.Boolean | centerLabel | If |
UnityEngine.GUILayoutOption[] | options | GUILayout options. |
UnityEngine.Rect | The rect of the box. |
public static Rect BeginLegendBox(params GUILayoutOption[] options)
UnityEngine.GUILayoutOption[] | options | GUILayout options. |
UnityEngine.Rect | The rect of the box. |
public static Rect BeginListItem(bool allowHover, GUIStyle style, Color evenColor, Color oddColor, Color evenHoverColor, Color oddHoverColor, params GUILayoutOption[] options)
System.Boolean | allowHover | If set to |
UnityEngine.GUIStyle | style | The style for the vertical list item. |
UnityEngine.Color | evenColor | The color for even elements. |
UnityEngine.Color | oddColor | The color for odd elements. |
UnityEngine.Color | evenHoverColor | The color for even elements when hovered. |
UnityEngine.Color | oddHoverColor | The color for odd elements when hovered. |
UnityEngine.GUILayoutOption[] | options | The GUI layout options. |
UnityEngine.Rect | The rect used for the item. |
public static Rect BeginListItem(bool allowHover = true, GUIStyle style = null, params GUILayoutOption[] options)
System.Boolean | allowHover | If set to |
UnityEngine.GUIStyle | style | The style for the vertical list item. |
UnityEngine.GUILayoutOption[] | options | The GUI layout options. |
UnityEngine.Rect | The rect used for the item. |
public static Rect BeginMenuListItem(out bool isSelected, out bool isMouseDown, bool setAsSelected = false)
System.Boolean | isSelected | Value indicating whether the item is selected. |
System.Boolean | isMouseDown | Value indicating if the mouse is pressed on the item. |
System.Boolean | setAsSelected | If set to |
UnityEngine.Rect | The rect used for the item. |
public static void BeginShakeableGroup()
public static void BeginShakeableGroup(float duration)
System.Single | duration |
public static bool BeginToggleGroup(object key, ref bool enabled, ref bool visible, string title)
System.Object | key | The key of the group. |
System.Boolean | enabled | Value indicating if the group is enabled. |
System.Boolean | visible | Value indicating if the group is visible. |
System.String | title | The title of the group. |
System.Boolean | Value indicating if the group is toggled. |
public static bool BeginToggleGroup(object key, ref bool enabled, ref bool visible, string title, float animationDuration)
System.Object | key | The key of the group. |
System.Boolean | enabled | Value indicating if the group is enabled. |
System.Boolean | visible | Value indicating if the group is visible. |
System.String | title | The title of the group. |
System.Single | animationDuration | Duration of the animation. |
System.Boolean | Value indicating if the group is toggled. |
public static Rect BeginToolbarBox(string label, bool centerLabel = false, params GUILayoutOption[] options)
System.String | label | Label for box header. |
System.Boolean | centerLabel | If |
UnityEngine.GUILayoutOption[] | options | GUILayout options. |
UnityEngine.Rect | The rect of the box. |
public static Rect BeginToolbarBox(GUIContent label, bool centerLabel = false, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label for box header. |
System.Boolean | centerLabel | If |
UnityEngine.GUILayoutOption[] | options | GUILayout options. |
UnityEngine.Rect | The rect of the box. |
public static Rect BeginToolbarBox(params GUILayoutOption[] options)
UnityEngine.GUILayoutOption[] | options | GUILayout options. |
UnityEngine.Rect | The rect of the box. |
public static Rect BeginToolbarBoxHeader(float height = 22F)
System.Single | height |
UnityEngine.Rect | The rect of the box. |
public static Rect BeginVerticalList(bool drawBorder = true, bool drawDarkBg = true, params GUILayoutOption[] options)
System.Boolean | drawBorder | If set to |
System.Boolean | drawDarkBg | If set to |
UnityEngine.GUILayoutOption[] | options | The GUI layout options. |
UnityEngine.Rect | The rect used for the list. |
public static Rect BeginVerticalMenuList(object key)
System.Object | key | The key for the menu list. |
UnityEngine.Rect | The rect created. |
public static Rect BeginVerticalPropertyLayout(GUIContent label)
UnityEngine.GUIContent | label |
UnityEngine.Rect |
public static Rect BeginVerticalPropertyLayout(GUIContent label, out Rect labelRect)
UnityEngine.GUIContent | label | |
UnityEngine.Rect | labelRect |
UnityEngine.Rect |
public static Rect BeginVerticalWithoutUsingControlID(GUIStyle style, params GUILayoutOption[] options)
UnityEngine.GUIStyle | style | |
UnityEngine.GUILayoutOption[] | options |
UnityEngine.Rect |
public static bool Button(string text, ButtonSizes size)
System.String | text | Text to display on the button. |
ButtonSizes | size | The size of the button. |
System.Boolean |
|
public static void CalculateMinimumSDFIconButtonWidth(string btnText, GUIStyle labelStyle, bool hasIcon, float buttonHeight, out float labelWidth, out float iconWidth, out float singlePadding, out float totalWidth)
System.String | btnText | |
UnityEngine.GUIStyle | labelStyle | |
System.Boolean | hasIcon | |
System.Single | buttonHeight | The height of the SDF icon button. |
System.Single | labelWidth | |
System.Single | iconWidth | |
System.Single | singlePadding | |
System.Single | totalWidth |
public static GUITabGroup CreateAnimatedTabGroup(object key)
System.Object | key | The key for the tab group.. |
GUITabGroup | An animated tab group. |
public static bool DetailedMessageBox(string message, string detailedMessage, MessageType messageType, bool hideDetailedMessage, bool wide = true)
System.String | message | The message of the message box. |
System.String | detailedMessage | The detailed message of the message box. |
UnityEditor.MessageType | messageType | Type of the message box. |
System.Boolean | hideDetailedMessage | If set to |
System.Boolean | wide | If set to |
System.Boolean | State of isFolded. |
public static bool DoButton(int controlId, bool isMouseOver, out bool isActive)
System.Int32 | controlId | |
System.Boolean | isMouseOver | |
System.Boolean | isActive |
System.Boolean |
public static bool DoButton(Rect position, out bool isMouseOver)
UnityEngine.Rect | position | |
System.Boolean | isMouseOver |
System.Boolean |
public static bool DoButton(Rect position, int controlId, out bool isMouseOver, out bool isActive)
UnityEngine.Rect | position | |
System.Int32 | controlId | |
System.Boolean | isMouseOver | |
System.Boolean | isActive |
System.Boolean |
public static bool DoButton(Rect position, out int controlId, out bool isMouseOver, out bool isActive)
UnityEngine.Rect | position | |
System.Int32 | controlId | |
System.Boolean | isMouseOver | |
System.Boolean | isActive |
System.Boolean |
public static void DrawBorders(Rect rect, int borderWidth, bool usePlaymodeTint = true)
UnityEngine.Rect | rect | The rect. |
System.Int32 | borderWidth | The width of the border on all sides. |
System.Boolean | usePlaymodeTint | If |
public static void DrawBorders(Rect rect, int left, int right, int top, int bottom, bool usePlaymodeTint = true)
UnityEngine.Rect | rect | The rect. |
System.Int32 | left | The left size. |
System.Int32 | right | The right size. |
System.Int32 | top | The top size. |
System.Int32 | bottom | The bottom size. |
System.Boolean | usePlaymodeTint | If |
public static void DrawBorders(Rect rect, int left, int right, int top, int bottom, Color color, bool usePlaymodeTint = true)
UnityEngine.Rect | rect | The rect. |
System.Int32 | left | The left size. |
System.Int32 | right | The right size. |
System.Int32 | top | The top size. |
System.Int32 | bottom | The bottom size. |
UnityEngine.Color | color | The color of the borders. |
System.Boolean | usePlaymodeTint | If |
public static void DrawBorders(Rect rect, int borderWidth, Color color, bool usePlaymodeTint = true)
UnityEngine.Rect | rect | The rect. |
System.Int32 | borderWidth | The width of the border on all sides. |
UnityEngine.Color | color | The color of the border. |
System.Boolean | usePlaymodeTint | If |
public static Color DrawColorField(Rect rect, Color color, bool useAlphaInPreview = true, bool showAlphaBar = false)
UnityEngine.Rect | rect | The rect to draw the field in. |
UnityEngine.Color | color | The color of the field. |
System.Boolean | useAlphaInPreview | If set to |
System.Boolean | showAlphaBar | If set to |
UnityEngine.Color | The color assigned to the field. |
public static void DrawHorizontalLineSeperator(float x, float y, float width, float alpha = 0.5F)
System.Single | x | |
System.Single | y | |
System.Single | width | |
System.Single | alpha |
public static void DrawRoundRect(Rect position, Color color, float cornerRadii)
UnityEngine.Rect | position | |
UnityEngine.Color | color | |
System.Single | cornerRadii |
public static void DrawRoundRect(Rect position, Color color, float topLeftCornerRadius, float topRightCornerRadius, float bottomLeftCornerRadius, float bottomRightCornerRadius)
UnityEngine.Rect | position | |
UnityEngine.Color | color | |
System.Single | topLeftCornerRadius | |
System.Single | topRightCornerRadius | |
System.Single | bottomLeftCornerRadius | |
System.Single | bottomRightCornerRadius |
public static void DrawRoundRect(Rect position, Color color, float topLeftCornerRadius, float topRightCornerRadius, float bottomLeftCornerRadius, float bottomRightCornerRadius, Color borderColor, float borderThickness)
UnityEngine.Rect | position | |
UnityEngine.Color | color | |
System.Single | topLeftCornerRadius | |
System.Single | topRightCornerRadius | |
System.Single | bottomLeftCornerRadius | |
System.Single | bottomRightCornerRadius | |
UnityEngine.Color | borderColor | |
System.Single | borderThickness |
public static void DrawRoundRect(Rect position, Color color, float cornerRadii, Color borderColor, float borderThickness)
UnityEngine.Rect | position | |
UnityEngine.Color | color | |
System.Single | cornerRadii | |
UnityEngine.Color | borderColor | |
System.Single | borderThickness |
public static Rect DrawSolidRect(float width, float height, Color color, bool usePlaymodeTint = true)
System.Single | width | The width. |
System.Single | height | The height. |
UnityEngine.Color | color | The color. |
System.Boolean | usePlaymodeTint | If |
UnityEngine.Rect | The rect created. |
public static void DrawSolidRect(Rect rect, Color color, bool usePlaymodeTint = true)
UnityEngine.Rect | rect | The rect. |
UnityEngine.Color | color | The color. |
System.Boolean | usePlaymodeTint | If |
public static void DrawTextureRepeat(Rect rect, Texture texture, float scale = 1F)
UnityEngine.Rect | rect | The UnityEngine.Rect to draw the UnityEngine.Texture in. |
UnityEngine.Texture | texture | The UnityEngine.Texture to draw. |
System.Single | scale | Amount of scaling applied to the output. |
public static void DrawTextureRepeat(Rect rect, Texture texture, Color color, float scale = 1F)
UnityEngine.Rect | rect | The UnityEngine.Rect to draw the UnityEngine.Texture in. |
UnityEngine.Texture | texture | The UnityEngine.Texture to draw. |
UnityEngine.Color | color | The UnityEngine.Color that modulates the output. |
System.Single | scale | Amount of scaling applied to the output. |
public static void DrawTextureSliced(Rect rect, Texture texture, int slice)
UnityEngine.Rect | rect | The UnityEngine.Rect to draw the UnityEngine.Texture in. |
UnityEngine.Texture | texture | The UnityEngine.Texture to draw. |
System.Int32 | slice | The amount of slicing applied to the texture on all sides. |
public static void DrawTextureSliced(Rect rect, Texture texture, int horizontalSlice, int verticalSlice)
UnityEngine.Rect | rect | The UnityEngine.Rect to draw the UnityEngine.Texture in. |
UnityEngine.Texture | texture | The UnityEngine.Texture to draw. |
System.Int32 | horizontalSlice | The amount of slicing applied to the left and right sides. |
System.Int32 | verticalSlice | The amount of slicing applied to the top and bottom sides. |
public static void DrawTextureSliced(Rect rect, Texture texture, int leftSlice, int rightSlice, int topSlice, int bottomSlice)
UnityEngine.Rect | rect | The UnityEngine.Rect to draw the UnityEngine.Texture in. |
UnityEngine.Texture | texture | The UnityEngine.Texture to draw. |
System.Int32 | leftSlice | The amount of slicing applied to the left side. |
System.Int32 | rightSlice | The amount of slicing applied to the right side. |
System.Int32 | topSlice | The amount of slicing applied to the top side. |
System.Int32 | bottomSlice | The amount of slicing applied to the bottom side. |
public static void DrawTextureSliced(Rect rect, Texture texture, Color color, int slice)
UnityEngine.Rect | rect | The UnityEngine.Rect to draw the UnityEngine.Texture in. |
UnityEngine.Texture | texture | The UnityEngine.Texture to draw. |
UnityEngine.Color | color | The UnityEngine.Color that modulates the output. |
System.Int32 | slice | The amount of slicing applied to the texture on all sides. |
public static void DrawTextureSliced(Rect rect, Texture texture, Color color, int horizontalSlice, int verticalSlice)
UnityEngine.Rect | rect | The UnityEngine.Rect to draw the UnityEngine.Texture in. |
UnityEngine.Texture | texture | The UnityEngine.Texture to draw. |
UnityEngine.Color | color | The UnityEngine.Color that modulates the output. |
System.Int32 | horizontalSlice | The amount of slicing applied to the left and right sides. |
System.Int32 | verticalSlice | The amount of slicing applied to the top and bottom sides. |
public static void DrawTextureSliced(Rect rect, Texture texture, Color color, int leftSlice, int rightSlice, int topSlice, int bottomSlice)
UnityEngine.Rect | rect | The UnityEngine.Rect to draw the UnityEngine.Texture in. |
UnityEngine.Texture | texture | The UnityEngine.Texture to draw. |
UnityEngine.Color | color | The UnityEngine.Color that modulates the output. |
System.Int32 | leftSlice | The amount of slicing applied to the left side. |
System.Int32 | rightSlice | The amount of slicing applied to the right side. |
System.Int32 | topSlice | The amount of slicing applied to the top side. |
System.Int32 | bottomSlice | The amount of slicing applied to the bottom side. |
public static void DrawTextureSliced(Rect rect, Texture texture, Color color, Rect uvRect, int slice)
UnityEngine.Rect | rect | The UnityEngine.Rect to draw the UnityEngine.Texture in. |
UnityEngine.Texture | texture | The UnityEngine.Texture to draw. |
UnityEngine.Color | color | The UnityEngine.Color that modulates the output. |
UnityEngine.Rect | uvRect | The UV-coordinates to use. |
System.Int32 | slice | The amount of slicing applied to the texture on all sides. |
public static void DrawTextureSliced(Rect rect, Texture texture, Color color, Rect uvRect, int horizontalSlice, int verticalSlice)
UnityEngine.Rect | rect | The UnityEngine.Rect to draw the UnityEngine.Texture in. |
UnityEngine.Texture | texture | The UnityEngine.Texture to draw. |
UnityEngine.Color | color | The UnityEngine.Color that modulates the output. |
UnityEngine.Rect | uvRect | The UV-coordinates to use. |
System.Int32 | horizontalSlice | The amount of slicing applied to the left and right sides. |
System.Int32 | verticalSlice | The amount of slicing applied to the top and bottom sides. |
public static void DrawTextureSliced(Rect rect, Texture texture, Color color, Rect uvRect, int leftSlice, int rightSlice, int topSlice, int bottomSlice)
UnityEngine.Rect | rect | The UnityEngine.Rect to draw the UnityEngine.Texture in. |
UnityEngine.Texture | texture | The UnityEngine.Texture to draw. |
UnityEngine.Color | color | The UnityEngine.Color that modulates the output. |
UnityEngine.Rect | uvRect | The UV-coordinates to use. |
System.Int32 | leftSlice | The amount of slicing applied to the left side. |
System.Int32 | rightSlice | The amount of slicing applied to the right side. |
System.Int32 | topSlice | The amount of slicing applied to the top side. |
System.Int32 | bottomSlice | The amount of slicing applied to the bottom side. |
public static void DrawTextureSliced(Rect rect, Texture texture, Rect uvRect, int slice)
UnityEngine.Rect | rect | The UnityEngine.Rect to draw the UnityEngine.Texture in. |
UnityEngine.Texture | texture | The UnityEngine.Texture to draw. |
UnityEngine.Rect | uvRect | The UV-coordinates to use. |
System.Int32 | slice | The amount of slicing applied to the texture on all sides. |
public static void DrawTextureSliced(Rect rect, Texture texture, Rect uvRect, int horizontalSlice, int verticalSlice)
UnityEngine.Rect | rect | The UnityEngine.Rect to draw the UnityEngine.Texture in. |
UnityEngine.Texture | texture | The UnityEngine.Texture to draw. |
UnityEngine.Rect | uvRect | The UV-coordinates to use. |
System.Int32 | horizontalSlice | The amount of slicing applied to the left and right sides. |
System.Int32 | verticalSlice | The amount of slicing applied to the top and bottom sides. |
public static void DrawTextureSliced(Rect rect, Texture texture, Rect uvRect, int leftSlice, int rightSlice, int topSlice, int bottomSlice)
UnityEngine.Rect | rect | The UnityEngine.Rect to draw the UnityEngine.Texture in. |
UnityEngine.Texture | texture | The UnityEngine.Texture to draw. |
UnityEngine.Rect | uvRect | The UV-coordinates to use. |
System.Int32 | leftSlice | The amount of slicing applied to the left side. |
System.Int32 | rightSlice | The amount of slicing applied to the right side. |
System.Int32 | topSlice | The amount of slicing applied to the top side. |
System.Int32 | bottomSlice | The amount of slicing applied to the bottom side. |
public static void DrawThickHorizontalSeparator()
public static void DrawThickHorizontalSeparator(float topPadding, float bottomPadding)
System.Single | topPadding | |
System.Single | bottomPadding |
public static void DrawThickHorizontalSeperator(float height, float topPadding, float bottomPadding)
System.Single | height | |
System.Single | topPadding | |
System.Single | bottomPadding |
public static void DrawThickHorizontalSeperator(Rect rect)
UnityEngine.Rect | rect |
public static void DrawVerticalLineSeperator(float x, float y, float height, float alpha = 0.5F)
System.Single | x | |
System.Single | y | |
System.Single | height | |
System.Single | alpha |
public static T DynamicPrimitiveField<T>(GUIContent label, T value, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | The label of the fields. |
T | value | The value to draw. |
UnityEngine.GUILayoutOption[] | options | The layout options. |
T | The possibly changed value. |
T | The type of the value to draw. |
public static bool DynamicPrimitiveFieldCanDraw<T>()
System.Boolean | True if the type can be drawn, otherwise false. |
T | The type to check. |
public static void EndBox()
public static void EndBoxHeader()
public static void EndFadeGroup()
public static void EndHorizontalAutoScrollBox()
public static void EndHorizontalPropertyLayout()
public static void EndHorizontalToolbar()
public static void EndIndentedHorizontal()
public static void EndIndentedVertical()
public static void EndInlineBox()
public static void EndLegendBox()
public static void EndListItem()
public static void EndMenuListItem()
public static void EndShakeableGroup()
public static void EndToggleGroup()
public static void EndToolbarBox()
public static void EndToolbarBoxHeader()
public static void EndVerticalList()
public static void EndVerticalMenuList()
public static void EndVerticalPropertyLayout()
public static void ErrorMessageBox(string message, bool wide = true)
System.String | message | The message. |
System.Boolean | wide | If set to |
public static bool Foldout(bool isVisible, string label, GUIStyle style = null)
System.Boolean | isVisible | The current state of the foldout. |
System.String | label | The label of the foldout. |
UnityEngine.GUIStyle | style | The GUI style. |
System.Boolean | The current state of the foldout. |
public static bool Foldout(bool isVisible, GUIContent label, GUIStyle style = null)
System.Boolean | isVisible | The current state of the foldout. |
UnityEngine.GUIContent | label | The label of the foldout. |
UnityEngine.GUIStyle | style | The GUI style. |
System.Boolean |
public static bool Foldout(bool isVisible, GUIContent label, out Rect valueRect, GUIStyle style = null)
System.Boolean | isVisible | The current state of the foldout. |
UnityEngine.GUIContent | label | The label of the foldout. |
UnityEngine.Rect | valueRect | The value rect. |
UnityEngine.GUIStyle | style | The GUI style. |
System.Boolean |
public static bool Foldout(Rect rect, bool isVisible, string label, GUIStyle style = null)
UnityEngine.Rect | rect | The rect to draw the foldout field in. |
System.Boolean | isVisible | The current state of the foldout. |
System.String | label | The label of the foldout. |
UnityEngine.GUIStyle | style | The style. |
System.Boolean |
public static bool Foldout(Rect rect, bool isVisible, GUIContent label, GUIStyle style = null)
UnityEngine.Rect | rect | The rect to draw the foldout field in. |
System.Boolean | isVisible | The current state of the foldout. |
UnityEngine.GUIContent | label | The label of the foldout. |
UnityEngine.GUIStyle | style | The style. |
System.Boolean |
public static bool Foldout(ref Rect position, int id, GUIContent label, bool isExpanded, bool toggleOnLabelClick)
UnityEngine.Rect | position | |
System.Int32 | id | |
UnityEngine.GUIContent | label | |
System.Boolean | isExpanded | |
System.Boolean | toggleOnLabelClick |
System.Boolean |
public static Rect GetFeatureRichControl(Rect rect, out int controlId, out bool hasKeyboardFocus)
UnityEngine.Rect | rect | The rect to make a feature rich control for. |
System.Int32 | controlId | The created control ID. |
System.Boolean | hasKeyboardFocus | A value indicating whether or not the control has keyboard focus. |
UnityEngine.Rect |
public static Rect GetFeatureRichControl(Rect rect, GUIContent label, out int controlId, out bool hasKeyboardFocus)
UnityEngine.Rect | rect | The rect to make a feature rich control for. |
UnityEngine.GUIContent | label | The label for the control. Leave |
System.Int32 | controlId | The created control ID. |
System.Boolean | hasKeyboardFocus | A value indicating whether or not the control has keyboard focus. |
UnityEngine.Rect |
public static Rect GetFeatureRichControlRect(GUIContent label, int height, out int controlId, out bool hasKeyboardFocus, out Rect valueRect, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | |
System.Int32 | height | |
System.Int32 | controlId | |
System.Boolean | hasKeyboardFocus | |
UnityEngine.Rect | valueRect | |
UnityEngine.GUILayoutOption[] | options |
UnityEngine.Rect |
public static Rect GetFeatureRichControlRect(GUIContent label, out int controlId, out bool hasKeyboardFocus, out Rect valueRect, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | |
System.Int32 | controlId | |
System.Boolean | hasKeyboardFocus | |
UnityEngine.Rect | valueRect | |
UnityEngine.GUILayoutOption[] | options |
UnityEngine.Rect |
public static void HorizontalLineSeparator(int lineWidth = 1)
System.Int32 | lineWidth | Width of the line. |
public static void HorizontalLineSeparator(Color color, int lineWidth = 1)
UnityEngine.Color | color | The color of the line. |
System.Int32 | lineWidth | The size of the line. |
public static bool IconButton(EditorIcon icon, int width = 18, int height = 18, string tooltip = "")
EditorIcon | icon | The editor icon for the button. |
System.Int32 | width | The width of the button. |
System.Int32 | height | The height of the button. |
System.String | tooltip | The tooltip of the button. |
System.Boolean |
|
public static bool IconButton(EditorIcon icon, GUIStyle style, int width = 18, int height = 18, string tooltip = "")
EditorIcon | icon | The editor icon for the button. |
UnityEngine.GUIStyle | style | The GUI style for the button. |
System.Int32 | width | The width of the button. |
System.Int32 | height | The height of the button. |
System.String | tooltip | The tooltip of the button. |
System.Boolean |
|
public static bool IconButton(Rect rect, EditorIcon icon)
UnityEngine.Rect | rect | The rect to draw the button in. |
EditorIcon | icon | The editor icon for the button. |
System.Boolean |
|
public static bool IconButton(Rect rect, EditorIcon icon, string tooltip)
UnityEngine.Rect | rect | The rect to draw the button in. |
EditorIcon | icon | The editor icon for the button. |
System.String | tooltip | The tooltip of the button. |
System.Boolean |
|
public static bool IconButton(Rect rect, EditorIcon icon, GUIStyle style, string tooltip)
UnityEngine.Rect | rect | The rect to draw the button in. |
EditorIcon | icon | The editor icon for the button. |
UnityEngine.GUIStyle | style | The GUI style for the button. |
System.String | tooltip | The tooltip of the button. |
System.Boolean |
|
public static bool IconButton(Rect rect, Texture icon, string tooltip)
UnityEngine.Rect | rect | The rect to draw the button in. |
UnityEngine.Texture | icon | The icon texture. |
System.String | tooltip | The tooltip for the button. |
System.Boolean |
|
public static bool IconButton(Rect rect, Texture icon, GUIStyle style, string tooltip)
UnityEngine.Rect | rect | The rect to draw the button in. |
UnityEngine.Texture | icon | The icon texture. |
UnityEngine.GUIStyle | style | Style for the button. |
System.String | tooltip | The tooltip for the button. |
System.Boolean |
|
public static bool IconButton(Texture icon, int width = 18, int height = 18, string tooltip = "")
UnityEngine.Texture | icon | The icon texture. |
System.Int32 | width | Width of the button in pixels. |
System.Int32 | height | Height of the button in pixels. |
System.String | tooltip | The tooltip for the button. |
System.Boolean |
|
public static bool IconButton(Texture icon, GUIStyle style, int width = 18, int height = 18, string tooltip = "")
UnityEngine.Texture | icon | The icon texture. |
UnityEngine.GUIStyle | style | Style for the button. |
System.Int32 | width | Width of the button in pixels. |
System.Int32 | height | Height of the button in pixels. |
System.String | tooltip | The tooltip for the button. |
System.Boolean |
|
public static void IconMessageBox(string message, SdfIconType iconType, Color? color = default(Color? ), GUIStyle messageBoxStyle = null, Action<GenericMenu> onContextClick = null)
System.String | message | The message to be displayed. |
SdfIconType | iconType | The icon to be displayed. |
System.Nullable<UnityEngine.Color> | color | The color of the icon. |
UnityEngine.GUIStyle | messageBoxStyle | The style of the message box. |
System.Action<UnityEditor.GenericMenu> | onContextClick | The action to be invoked if the message box is right-clicked. |
public static bool IconRepeatButton(EditorIcon icon)
EditorIcon | icon | The icon for the button. |
System.Boolean |
|
public static bool IconRepeatButton(EditorIcon icon, int size)
EditorIcon | icon | The icon for the button. |
System.Int32 | size | The size. |
System.Boolean |
|
public static bool IconRepeatButton(EditorIcon icon, int width, int height)
EditorIcon | icon | The icon for the button. |
System.Int32 | width | The width of the button. |
System.Int32 | height | The height of the button. |
System.Boolean |
|
public static void IndentSpace()
public static void InfoMessageBox(string message, bool wide = true)
System.String | message | The message. |
System.Boolean | wide | If set to |
public static bool MenuButton(int indent, string text, bool isActive, Texture icon)
System.Int32 | indent | The indent of the button. |
System.String | text | The text of the button. |
System.Boolean | isActive | The current state of the button. |
UnityEngine.Texture | icon | The texture icon for the button. |
System.Boolean | The current state of the button. |
public static void MessageBox(string message, bool wide = true)
System.String | message | The message. |
System.Boolean | wide | If set to |
public static void MessageBox(string message, MessageType messageType, bool wide = true)
System.String | message | The message. |
UnityEditor.MessageType | messageType | Type of the message. |
System.Boolean | wide | If set to |
public static void MessageBox(string message, MessageType messageType, GUIStyle style, bool wide = true)
System.String | message | The message. |
UnityEditor.MessageType | messageType | Type of the message. |
UnityEngine.GUIStyle | style | The style. |
System.Boolean | wide | If set to |
public static void MessageBox(string message, MessageType messageType, GUIStyle style, bool wide = true, Action<GenericMenu> onContextClick = null)
System.String | message | The message. |
UnityEditor.MessageType | messageType | Type of the message. |
UnityEngine.GUIStyle | style | The style. |
System.Boolean | wide | If set to |
System.Action<UnityEditor.GenericMenu> | onContextClick |
public static Rect PrefixRect(Rect position, GUIContent label, out Rect prefixPosition)
UnityEngine.Rect | position | |
UnityEngine.GUIContent | label | |
UnityEngine.Rect | prefixPosition |
UnityEngine.Rect |
public static Rect PrefixRect(Rect position, out Rect prefixPosition)
UnityEngine.Rect | position | |
UnityEngine.Rect | prefixPosition |
UnityEngine.Rect |
public static bool SDFIconButton(string label, float height, SdfIconType icon, IconAlignment iconAlignment = IconAlignment.LeftOfText, GUIStyle style = null)
System.String | label | The button's label. |
System.Single | height | The button's height. |
SdfIconType | icon | The button's icon. |
IconAlignment | iconAlignment | The button's icon alignment. ButtonIconAlignment.LeftOfText by default. |
UnityEngine.GUIStyle | style | The button's style. |
System.Boolean |
public static bool SDFIconButton(string label, float height, Texture icon, IconAlignment iconAlignment = IconAlignment.LeftOfText, GUIStyle style = null)
System.String | label | The button's label. |
System.Single | height | The button's height. |
UnityEngine.Texture | icon | The button's icon. |
IconAlignment | iconAlignment | The button's icon alignment. ButtonIconAlignment.LeftOfText by default. |
UnityEngine.GUIStyle | style | The button's style. |
System.Boolean |
public static bool SDFIconButton(GUIContent label, float height, SdfIconType icon, IconAlignment iconAlignment = IconAlignment.LeftOfText, GUIStyle style = null)
UnityEngine.GUIContent | label | The button's label. |
System.Single | height | The button's height. |
SdfIconType | icon | The button's icon. |
IconAlignment | iconAlignment | The button's icon alignment. ButtonIconAlignment.LeftOfText by default. |
UnityEngine.GUIStyle | style | The button's style. |
System.Boolean |
public static bool SDFIconButton(GUIContent label, float height, Texture icon, IconAlignment iconAlignment = IconAlignment.LeftOfText, GUIStyle style = null)
UnityEngine.GUIContent | label | The button's label. |
System.Single | height | The button's height. |
UnityEngine.Texture | icon | The button's icon. |
IconAlignment | iconAlignment | The button's icon alignment. ButtonIconAlignment.LeftOfText by default. |
UnityEngine.GUIStyle | style | The button's style. |
System.Boolean |
public static bool SDFIconButton(Rect rect, SdfIconType icon, IconAlignment iconAlignment = IconAlignment.LeftOfText, GUIStyle style = null)
UnityEngine.Rect | rect | The button's rect. |
SdfIconType | icon | The button's icon. |
IconAlignment | iconAlignment | The button's icon alignment. ButtonIconAlignment.LeftOfText by default. |
UnityEngine.GUIStyle | style | The button's style. |
System.Boolean |
public static bool SDFIconButton(Rect rect, SdfIconType icon, GUIStyle style = null)
UnityEngine.Rect | rect | The button's rect. |
SdfIconType | icon | The button's icon. |
UnityEngine.GUIStyle | style | The button's style. |
System.Boolean |
public static bool SDFIconButton(Rect rect, string label, SdfIconType icon, IconAlignment iconAlignment = IconAlignment.LeftOfText, GUIStyle style = null)
UnityEngine.Rect | rect | The button's rect. |
System.String | label | The button's label. |
SdfIconType | icon | The button's icon. |
IconAlignment | iconAlignment | The button's icon alignment. ButtonIconAlignment.LeftOfText by default. |
UnityEngine.GUIStyle | style | The button's style. |
System.Boolean |
public static bool SDFIconButton(Rect rect, string label, Texture icon, IconAlignment iconAlignment = IconAlignment.LeftOfText, GUIStyle style = null)
UnityEngine.Rect | rect | The button's rect. |
System.String | label | The button's label. |
UnityEngine.Texture | icon | The button's icon. |
IconAlignment | iconAlignment | The button's icon alignment. ButtonIconAlignment.LeftOfText by default. |
UnityEngine.GUIStyle | style | The button's style. |
System.Boolean |
public static bool SDFIconButton(Rect rect, GUIContent label, SdfIconType icon, IconAlignment iconAlignment = IconAlignment.LeftOfText, GUIStyle style = null, bool selected = false)
UnityEngine.Rect | rect | The button's rect. |
UnityEngine.GUIContent | label | The button's label. |
SdfIconType | icon | The button's icon. |
IconAlignment | iconAlignment | The button's icon alignment. ButtonIconAlignment.LeftOfText by default. |
UnityEngine.GUIStyle | style | The button's style. |
System.Boolean | selected |
System.Boolean |
public static bool SDFIconButton(Rect rect, GUIContent label, Texture icon, IconAlignment iconAlignment = IconAlignment.LeftOfText, GUIStyle style = null)
UnityEngine.Rect | rect | The button's rect. |
UnityEngine.GUIContent | label | The button's label. |
UnityEngine.Texture | icon | The button's icon. |
IconAlignment | iconAlignment | The button's icon alignment. ButtonIconAlignment.LeftOfText by default. |
UnityEngine.GUIStyle | style | The button's style. |
System.Boolean |
public static string SearchField(Rect rect, string searchText, bool forceFocus = false, string controlName = "SirenixSearchField")
UnityEngine.Rect | rect | |
System.String | searchText | |
System.Boolean | forceFocus | |
System.String | controlName |
System.String |
public static float SlideRect(Rect rect, int id, float t)
UnityEngine.Rect | rect | The grabbable rect. |
System.Int32 | id | The control ID for the sliding. |
System.Single | t | The current value. |
System.Single | The current value. |
public static Vector2 SlideRect(Rect rect, MouseCursor cursor)
UnityEngine.Rect | rect | The grabbable rect. |
UnityEditor.MouseCursor | cursor | The cursor. |
UnityEngine.Vector2 | The the mouse delta position. |
public static Vector2 SlideRect(Vector2 position, Rect rect)
UnityEngine.Vector2 | position | The position. |
UnityEngine.Rect | rect | The grabbable rect. |
UnityEngine.Vector2 | The the mouse delta position. |
public static double SlideRectDouble(Rect rect, int id, double t)
UnityEngine.Rect | rect | The grabbable rect. |
System.Int32 | id | The control ID for the sliding. |
System.Double | t | The current value. |
System.Double | The current value. |
public static int SlideRectInt(Rect rect, int id, int t)
UnityEngine.Rect | rect | The grabbable rect. |
System.Int32 | id | The control ID for the sliding. |
System.Int32 | t | The current value. |
System.Int32 | The current value. |
public static long SlideRectLong(Rect rect, int id, long t)
UnityEngine.Rect | rect | The grabbable rect. |
System.Int32 | id | The control ID for the sliding. |
System.Int64 | t | The current value. |
System.Int64 | The current value. |
public static void StartShakingGroup()
public static void Title(string title, string subtitle, TextAlignment textAlignment, bool horizontalLine, bool boldLabel = true)
System.String | title | |
System.String | subtitle | |
UnityEngine.TextAlignment | textAlignment | |
System.Boolean | horizontalLine | |
System.Boolean | boldLabel |
public static bool ToolbarButton(SdfIconType icon, bool ignoreGUIEnabled = false)
SdfIconType | icon | The icon for the button. |
System.Boolean | ignoreGUIEnabled | If true, the button clickable while GUI.enabled == false. |
System.Boolean |
|
public static bool ToolbarButton(EditorIcon icon, bool ignoreGUIEnabled = false)
EditorIcon | icon | The icon for the button. |
System.Boolean | ignoreGUIEnabled | If true, the button clickable while GUI.enabled == false. |
System.Boolean |
|
public static bool ToolbarButton(string label, bool selected = false)
System.String | label | The label for the button. |
System.Boolean | selected | Whether the button state is selected or not |
System.Boolean |
|
public static bool ToolbarButton(GUIContent content, bool selected = false)
UnityEngine.GUIContent | content | The GUI content for the button. |
System.Boolean | selected | Whether the button state is selected or not |
System.Boolean |
|
public static string ToolbarSearchField(string searchText, bool forceFocus = false, float marginLeftRight = 5F)
System.String | searchText | The current search text. |
System.Boolean | forceFocus | If set to |
System.Single | marginLeftRight | The left and right margin. |
System.String | The current search text. |
public static bool ToolbarTab(bool isActive, string label)
System.Boolean | isActive | If |
System.String | label | Name for the tab. |
System.Boolean | State of isActive. |
public static bool ToolbarTab(bool isActive, GUIContent label)
System.Boolean | isActive | If |
UnityEngine.GUIContent | label | Label for the tab. |
System.Boolean | State of isActive. |
public static bool ToolbarToggle(bool isActive, EditorIcon icon)
System.Boolean | isActive | Current state of the toggle. |
EditorIcon | icon | The icon for the toggle. |
System.Boolean | The state of the toggle. |
public static bool ToolbarToggle(bool isActive, string text)
System.Boolean | isActive | Current state of the toggle. |
System.String | text | The text for the toggle. |
System.Boolean | The state of the toggle. |
public static bool ToolbarToggle(bool isActive, GUIContent content)
System.Boolean | isActive | Current state of the toggle. |
UnityEngine.GUIContent | content | The GUI content for the button. |
System.Boolean | The state of the toggle. |
public static bool ToolbarToggle(bool isActive, Texture icon)
System.Boolean | isActive | Current state of the toggle. |
UnityEngine.Texture | icon | The icon for the toggle. |
System.Boolean | The state of the toggle. |
public static void VerticalLineSeparator(int lineWidth = 1)
System.Int32 | lineWidth | Width of the line. |
public static void VerticalLineSeparator(Color color, int lineWidth = 1)
UnityEngine.Color | color | The color of the line. |
System.Int32 | lineWidth | Width of the line. |
public static void WarningMessageBox(string message, bool wide = true)
System.String | message | The message. |
System.Boolean | wide | If set to |