Description
The Path
property of the Editor.Asset
class provides the relative path of the asset, including its extension. This path is used within the editor to reference the asset. For example, a file with a .wav
extension might be represented as .vsnd
in the asset system.
Usage
Use the Path
property to retrieve the relative path of an asset within the editor. This is useful for operations that require the asset's location or when you need to display the asset's path in the user interface.
Example
// Example of accessing the Path property
Editor.Asset asset = GetAsset();
string assetPath = asset.Path;
// Use assetPath for further operations