docs.unity3d.com
    Show / Hide Table of Contents

    Class AssetUtility

    Inheritance
    Object
    AssetUtility
    Namespace: Unity.VisualScripting
    Syntax
    public static class AssetUtility

    Methods

    GetAllAssetsOfType<T>()

    Declaration
    public static IEnumerable<T> GetAllAssetsOfType<T>()
    Returns
    Type Description
    IEnumerable<T>
    Type Parameters
    Name Description
    T

    GetFileID(String, String)

    Declaration
    public static int GetFileID(string namespace, string name)
    Parameters
    Type Name Description
    String namespace
    String name
    Returns
    Type Description
    Int32

    GetFileID(Type)

    Declaration
    public static int GetFileID(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    Int32

    GetPluginRuntimeGUID(Plugin)

    Declaration
    public static string GetPluginRuntimeGUID(Plugin plugin)
    Parameters
    Type Name Description
    Plugin plugin
    Returns
    Type Description
    String

    GetSelectedFolderPath()

    Declaration
    public static string GetSelectedFolderPath()
    Returns
    Type Description
    String

    TryLoad<T>(String, out T)

    Declaration
    public static bool TryLoad<T>(string path, out T asset)
        where T : ScriptableObject
    Parameters
    Type Name Description
    String path
    T asset
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    T

    TryLoadIfExists<T>(String, out T)

    Declaration
    public static bool TryLoadIfExists<T>(string path, out T asset)
        where T : ScriptableObject
    Parameters
    Type Name Description
    String path
    T asset
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    T
    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