Class SuperGUIStyleUtility
Utility class for building cached GUIStyles in one line of code
public static class SuperGUIStyleUtility
- Inheritance
-
SuperGUIStyleUtility
Methods
GetStyle(string)
Get a GUIStyle with the specified name (Prefer using a prefix to avoid conflicts)
public static GUIStyle GetStyle(string styleName)
Parameters
styleName
stringThe name of the GUIStyle
Returns
GetStyle(string, Func<GUIStyle>)
Get a GUIStyle with the specified name and create it if it doesn't exist
public static GUIStyle GetStyle(string styleName, Func<GUIStyle> createStyle)
Parameters
styleName
stringThe name of the GUIStyle
createStyle
Func<GUIStyle>The function to create the GUIStyle
Returns
GetStyle(string, string)
public static GUIStyle GetStyle(string prefix, string styleName)
Parameters
Returns
GetStyle(string, string, Func<GUIStyle>)
public static GUIStyle GetStyle(string prefix, string styleName, Func<GUIStyle> createStyle)
Parameters
Returns
Variant(GUIStyle, string, Action<GUIStyle>)
Get a GUIStyle with the specified name and create it if it doesn't exist
public static GUIStyle Variant(this GUIStyle style, string styleName, Action<GUIStyle> createStyle)
Parameters
style
GUIStylestyleName
stringThe name of the GUIStyle
createStyle
Action<GUIStyle>The function to create the GUIStyle
Returns
Variant(GUIStyle, string, string, Action<GUIStyle>)
public static GUIStyle Variant(this GUIStyle style, string prefix, string styleName, Action<GUIStyle> createStyle)