Class ObjectPathConverter
- Namespace
- CodeBase
- Assembly
- 4Experience.CodeBase.Core.Editor.dll
A helper class contains methods used to determine the path to an asset.
public static class ObjectPathConverter
- Inheritance
-
ObjectPathConverter
Properties
StringPartToRemoveFromResourcePath
private static List<string> StringPartToRemoveFromResourcePath { get; }
Property Value
Methods
GetObjectFullPath(Object)
Returns the path name relative to the project folder where the asset is stored.
public static string GetObjectFullPath(Object objectToGetPath)
Parameters
objectToGetPathObject
Returns
GetObjectRelativePathWithExtension(Object)
Returns the path name with extension. Relative to the project folder and with removing prefixes Assets/Resources/, Assets/StreamingAssets/.
public static string GetObjectRelativePathWithExtension(Object objectToGetPath)
Parameters
objectToGetPathObject
Returns
GetObjectRelativePathWithoutExtension(Object)
Returns the path name without extension. Relative to the project folder and with removing prefixes Assets/Resources/, Assets/StreamingAssets/.
public static string GetObjectRelativePathWithoutExtension(Object objectToGetPath)
Parameters
objectToGetPathObject