Class 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 |