Search Results for

    Show / Hide Table of Contents

    Class ResourcesProvider

    Inheritance
    System.Object
    ResourcesProvider
    Namespace: GDX.Editor
    Syntax
    public static class ResourcesProvider

    Fields

    | Improve this Doc View Source

    ChangedClass

    Declaration
    public const string ChangedClass = "changed"
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    DisabledClass

    Declaration
    public const string DisabledClass = "disabled"
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    EnabledClass

    Declaration
    public const string EnabledClass = "enabled"
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    ExpandedClass

    Declaration
    public const string ExpandedClass = "expanded"
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    HiddenClass

    Declaration
    public const string HiddenClass = "hidden"
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    SearchClass

    Declaration
    public const string SearchClass = "search"
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    SearchHighlightClass

    Declaration
    public const string SearchHighlightClass = "search-item"
    Field Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    CheckTheme(VisualElement)

    Apply light/dark mode classes.

    Declaration
    public static void CheckTheme(VisualElement element)
    Parameters
    Type Name Description
    UnityEngine.UIElements.VisualElement element

    The target element to have classes applied to.

    | Improve this Doc View Source

    GetBanner()

    Returns an instance of the GDX logo banner image.

    Declaration
    public static Texture2D GetBanner()
    Returns
    Type Description
    UnityEngine.Texture2D

    An image loaded from disk, if not cached.

    | Improve this Doc View Source

    GetDataTableIcon()

    Returns an instance of the DataTable icon.

    Declaration
    public static Texture2D GetDataTableIcon()
    Returns
    Type Description
    UnityEngine.Texture2D

    An image loaded from disk, if not cached.

    | Improve this Doc View Source

    GetLogo()

    Returns an instance of the dotBunny logo image.

    Declaration
    public static Texture2D GetLogo()
    Returns
    Type Description
    UnityEngine.Texture2D

    An image loaded from disk, if not cached.

    | Improve this Doc View Source

    GetSharedStylesheet()

    Return the global stylesheet.

    Declaration
    public static StyleSheet GetSharedStylesheet()
    Returns
    Type Description
    UnityEngine.UIElements.StyleSheet

    The stylesheet if found, or null.

    Remarks

    This will find and cache the stylesheet reference for future use, using the first asset to match the query.

    | Improve this Doc View Source

    GetStylesheet(String)

    Declaration
    public static StyleSheet GetStylesheet(string targetName)
    Parameters
    Type Name Description
    System.String targetName
    Returns
    Type Description
    UnityEngine.UIElements.StyleSheet
    | Improve this Doc View Source

    GetStyleSheetOverride()

    Return the override stylesheet.

    Declaration
    public static StyleSheet GetStyleSheetOverride()
    Returns
    Type Description
    UnityEngine.UIElements.StyleSheet

    The stylesheet if found, or null.

    Remarks

    This will find and cache the stylesheet reference for future use, using the first asset to match the query.

    | Improve this Doc View Source

    SetupSharedStylesheets(VisualElement)

    Sets up the initial stylesheets for a UnityEngine.UIElements.VisualElement.

    Declaration
    public static void SetupSharedStylesheets(VisualElement rootElement)
    Parameters
    Type Name Description
    UnityEngine.UIElements.VisualElement rootElement

    The target UnityEngine.UIElements.VisualElement to have the stylesheets applied to.

    | Improve this Doc View Source

    SetupStylesheet(String, VisualElement)

    Add the target stylesheet to the provided rootElement.

    Declaration
    public static void SetupStylesheet(string targetName, VisualElement rootElement)
    Parameters
    Type Name Description
    System.String targetName

    The name of the stylesheet found in the package.

    UnityEngine.UIElements.VisualElement rootElement

    The element to apply the stylesheet to.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Built on 2024-01-01 against 1f69a68.
    Generated by Dox+DocFX.