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