Class UIElementsEditorUtility | Anime Toolbox | 0.3.1-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class UIElementsEditorUtility

    A utility class for executing operations related to UIElements.

    Inheritance
    Object
    UIElementsEditorUtility
    Namespace: Unity.AnimeToolbox.Editor
    Syntax
    public class UIElementsEditorUtility

    Methods

    LoadAndAddStyle(VisualElementStyleSheetSet, String, String)

    Load UIElement style file and adds it to StyleSheetSet

    Declaration
    public static void LoadAndAddStyle(VisualElementStyleSheetSet set, string pathWithoutExt, string ext = ".uss")
    Parameters
    Type Name Description
    VisualElementStyleSheetSet set

    StyleSheetSet to which the new StyleSheet will be added

    String pathWithoutExt

    Path to the file without the extension

    String ext

    The extension of the file. Assumed to be ".uss"

    LoadVisualTreeAsset(String, String)

    Load a UXML file

    Declaration
    public static VisualTreeAsset LoadVisualTreeAsset(string pathWithoutExt, string ext = ".uxml")
    Parameters
    Type Name Description
    String pathWithoutExt

    the path to the UXML file without the extension

    String ext

    The extension of the UXML file. Assumed to be ".uxml"

    Returns
    Type Description
    VisualTreeAsset
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023