Class PackageUtils
Inheritance
System.Object
PackageUtils
Namespace: UnityEditor.FilmTV.Toolbox
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 |
|---|---|---|
| System.String | filePath |
Returns
| Type | Description |
|---|---|
| System.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 |
|---|---|---|
| System.String | baseFolderPath | |
| System.String | filePath |
Returns
| Type | Description |
|---|---|
| System.String |