SuperBehaviour SuperBehaviour
SuperBehaviour SuperBehaviour
v0.1.2 [Beta]

Search Results for

    Class SuperGUIStyleUtility

    Namespace
    LoM.Super.Editor
    Assembly
    LoM.Super.Editor.dll

    Utility class for building cached GUIStyles in one line of code

    public static class SuperGUIStyleUtility
    Inheritance
    object
    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 string

    The name of the GUIStyle

    Returns

    GUIStyle

    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 string

    The name of the GUIStyle

    createStyle Func<GUIStyle>

    The function to create the GUIStyle

    Returns

    GUIStyle

    GetStyle(string, string)

    public static GUIStyle GetStyle(string prefix, string styleName)

    Parameters

    prefix string
    styleName string

    Returns

    GUIStyle

    GetStyle(string, string, Func<GUIStyle>)

    public static GUIStyle GetStyle(string prefix, string styleName, Func<GUIStyle> createStyle)

    Parameters

    prefix string
    styleName string
    createStyle Func<GUIStyle>

    Returns

    GUIStyle

    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 GUIStyle
    styleName string

    The name of the GUIStyle

    createStyle Action<GUIStyle>

    The function to create the GUIStyle

    Returns

    GUIStyle

    Variant(GUIStyle, string, string, Action<GUIStyle>)

    public static GUIStyle Variant(this GUIStyle style, string prefix, string styleName, Action<GUIStyle> createStyle)

    Parameters

    style GUIStyle
    prefix string
    styleName string
    createStyle Action<GUIStyle>

    Returns

    GUIStyle
    © Lords of Mahlstrom Gaming, all rights reserved.