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

    Class AssetUtility

    A utility class for executing operations related to Unity assets. Can be executed by runtime code in the editor, but should not be executed in an executable.

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

    Methods

    NormalizeAssetPath(String)

    Normalize an absolute path under Unity project to make it relative to the Unity project folder. Paths that are outside Unity project will be unchanged. Only slash ('/') is regarded as a directory separator. Ex: C:/TempUnityProject/Assets/Foo.prefab => Assets/Foo.prefab C:/NonUnityProject/Foo.prefab => C:/NonUnityProject/Foo.prefab

    Declaration
    public static string NormalizeAssetPath(string path)
    Parameters
    Type Name Description
    String path

    The path to be normalized.

    Returns
    Type Description
    String

    The normalized path.

    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