EditorIcons¶
Namespace:
SideXP.UI.EditorOnly
Utility for getting icon resources.
Properties¶
MaterialIconsAsset¶
Gets the MaterialIcons asset used by this utility.
Methods¶
GetIcon(string, bool, bool)¶
Gets the texture of a named icon alone.
Parameters
name: The name of the icon you want to get, as defined from the Material Icons list (https://fonts.google.com/icons?icon.set=Material+Icons).black: Do you want to get the black version of the icon?x2: Do you want the doubled size of the icon?
Returns
Returns the found icon.
IconContent(string, string, string, bool, bool)¶
public static GUIContent IconContent(string iconName, string text, string tooltip, bool black = false, bool x2 = false)
Creates a GUIContent, using the named icon as content's icon.
Parameters
iconNametext: The text of the outputGUIContent.tooltip: The tooltip of the outputGUIContent.black: Do you want to get the black version of the icon?x2: Do you want the doubled size of the icon?
Returns
Returns the generated GUIContent.
IconContent(string, string, bool, bool)¶
public static GUIContent IconContent(string iconName, string tooltip, bool black = false, bool x2 = false)
Creates a GUIContent, using the named icon as content's icon.
Parameters
iconNametooltip: The tooltip of the outputGUIContent.
Returns
Returns the generated GUIContent.
IconContent(string, bool, bool)¶
Creates a GUIContent, using the named icon as content's icon.
Parameters
iconName
Returns
Returns the generated GUIContent.
IconButton(Rect, string, GUIContent)¶
Draws a button on GUI with the named icon in the label.
Parameters
position: Rectangle on the screen to use for the button.label: Text and tooltip for this button.iconName
Returns
Returns true if the user clicks the button.
IconButton(Rect, string, string, string)¶
Draws a button on GUI with the named icon in the label.
Parameters
label: Text for this buttontooltip: Tooltip for this button.position: Rectangle on the screen to use for the button.
Returns
Returns true if the user clicks the button.
IconButton(Rect, string, string)¶
Parameters
label: Text for this button
IconButton(Rect, string)¶
Draws a button on GUI with the named icon in the label.
Parameters
position: Rectangle on the screen to use for the button.
Returns
Returns true if the user clicks the button.
IconButton(string, GUIContent, GUILayoutOption[])¶
Draws a button on GUI with the named icon in the label.
Parameters
options: Options for the rectangle on the screen to use for the button.label: Text and tooltip for this button.
Returns
Returns true if the user clicks the button.
Remarks
Uses layout GUI.
IconButton(string, string, string, GUILayoutOption[])¶
public static bool IconButton(string iconName, string label, string tooltip, params GUILayoutOption[] options)
Parameters
label: Text for this buttontooltip: Tooltip for this button.
IconButton(string, string, GUILayoutOption[])¶
Inherited documentation.
IconButton(string, GUILayoutOption[])¶
Inherited documentation.