AssetInfoAudioSource
public class AssetInfoAudioSourceBridges AssetInventory’s AssetInfo to AudioTool’s IAudioSource interface. Enables seamless integration between AssetInventory and the standalone Audio Tool.
Constructors
Section titled “Constructors”
AssetInfoAudioSource(AssetInfo)
Section titled “AssetInfoAudioSource(AssetInfo)”public AssetInfoAudioSource(AssetInfo assetInfo)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
assetInfo |
AssetInventory.AssetInfo |
Properties
Section titled “Properties”
FileName
Section titled “FileName”public string FileName { get; }The display name of the audio file.
Returns
System.String — No return description is available.
IsInProject
Section titled “IsInProject”public bool IsInProject { get; }Whether the source is already in the Unity project’s Assets folder.
Returns
System.Boolean — No return description is available.
ProjectPath
Section titled “ProjectPath”public string ProjectPath { get; }The project-relative path if IsInProject is true (e.g., “Assets/Audio/sound.wav”).
Returns
System.String — No return description is available.
AssetInfo
Section titled “AssetInfo”public AssetInfo AssetInfo { get; }Gets the AssetInfo this source was created from.
Returns
AssetInventory.AssetInfo — No return description is available.
Methods
Section titled “Methods”
GetMaterializedPathAsync(CancellationToken)
Section titled “GetMaterializedPathAsync(CancellationToken)”public Task<string> GetMaterializedPathAsync(CancellationToken ct = default)Gets a path to the materialized audio file on disk. For files already in the project, this returns the full path directly. For files in packages/archives, this extracts to a temporary location.
Parameters
| Name | Type | Description |
|---|---|---|
ct |
System.Threading.CancellationToken | Cancellation token for async operations |
Returns
System.Threading.Tasks.Task{System.String} — Full file system path to the audio file