docs.unity.cn
    Show / Hide Table of Contents

    Class PackageUtils

    Inheritance
    Object
    PackageUtils
    Namespace: Unity.Formats.USD
    Syntax
    public static class PackageUtils

    Methods

    GetCallerRelativeToProjectFolderPath(String)

    Utils function to get the relative path of the current caller with current Unity directory as a base folder

    Declaration
    public static string GetCallerRelativeToProjectFolderPath(string filePath = "")
    Parameters
    Type Name Description
    String filePath
    Returns
    Type Description
    String

    GetRelativeFolderPath(String, String)

    Utils function to get the relative path of a file considering a base folder

    Declaration
    public static string GetRelativeFolderPath(string baseFolderPath, string filePath = "")
    Parameters
    Type Name Description
    String baseFolderPath
    String filePath
    Returns
    Type Description
    String
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, June 23, 2023