Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced
  • Prepares a clip and retains it in the runtime cache.

API: scripting
Project: Inno.Audio
Scope: Runtime

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))

Parameter clip: Imported clip to prepare.

Parameter loadMode: Storage strategy override.

Parameter cancellationToken: Cancellation token observed before the cache commit.

An asynchronous operation that completes after the cache entry is ready.