Table of Contents

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

List<string>

Methods

GetObjectFullPath(Object)

Returns the path name relative to the project folder where the asset is stored.

public static string GetObjectFullPath(Object objectToGetPath)

Parameters

objectToGetPath Object

Returns

string

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

objectToGetPath Object

Returns

string

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

objectToGetPath Object

Returns

string