Synced
Audio.PreloadAsync
Section titled “Audio.PreloadAsync”
- Prepares a clip and retains it in the runtime cache.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Audio
Scope: Runtime
Declaration
Section titled “Declaration”public static System.Threading.Tasks.ValueTask InnoEngine.Audio.Audio.PreloadAsync(InnoEngine.Audio.AudioClipAsset clip, InnoEngine.Audio.AudioClipLoadMode loadMode = InnoEngine.Audio.AudioClipLoadMode.Automatic, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Parameters
Section titled “Parameters”Parameter clip: Imported clip to prepare.
Parameter loadMode: Storage strategy override.
Parameter cancellationToken: Cancellation token observed before the cache commit.
Returns
Section titled “Returns”An asynchronous operation that completes after the cache entry is ready.