Search Results for

    Show / Hide Table of Contents

    Method CreateStyleFromSprite

    CreateStyleFromSprite(String, String, String, String)

    Creates a GUIStyle using the given sprite names.

    Declaration
    public static GUIStyle CreateStyleFromSprite(string normal, string active = null, string focused = null, string hover = null)
    Parameters
    Type Name Description
    String normal

    Sprite to use on normal state.

    String active

    Sprite to use on active state.

    String focused

    Sprite to use on focused state.

    String hover

    Sprite to use on hover state.

    Returns
    Type Description
    GUIStyle

    The generated GUIStyle

    CreateStyleFromSprite(RectOffset, String, String, String, String)

    Creates a GUIStyle using the given sprite names and padding.

    Declaration
    public static GUIStyle CreateStyleFromSprite(RectOffset padding, string normal, string active = null, string focused = null, string hover = null)
    Parameters
    Type Name Description
    RectOffset padding

    Padding of the GUIStyle.

    String normal

    Sprite to use on normal state.

    String active

    Sprite to use on active state.

    String focused

    Sprite to use on focused state.

    String hover

    Sprite to use on hover state.

    Returns
    Type Description
    GUIStyle

    The generated GUIStyle

    In This Article
    Back to top Copyright © VRLabs.
    Generated by DocFX