string RelativePath { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The RelativePath property provides the relative path of the asset as it exists on disk. This path reflects the actual file extension used on the disk, such as .wav instead of a compiled extension like .vsnd. This property is useful for accessing the original file format of the asset.

Usage

Use the RelativePath property when you need to retrieve the file path of an asset in its original format as stored on disk. This can be particularly useful for file management tasks or when interfacing with external systems that require the original file format.

Example

// Example of accessing the RelativePath property
Editor.Asset asset = GetAsset();
string relativePath = asset.RelativePath;
// Use the relativePath for file operations or logging