Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Prepares and explicitly retains a clip cache entry.

API: engine
Project: Inno.Audio.Runtime

public System.Threading.Tasks.ValueTask Inno.Audio.Runtime.AudioRuntime.PreloadAsync(Inno.Audio.AudioClipAsset clip, Inno.Audio.AudioClipLoadMode loadMode = Inno.Audio.AudioClipLoadMode.Automatic, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))

Parameter clip: Imported clip to retain.

Parameter loadMode: Storage strategy override.

Parameter cancellationToken: Cancellation token observed before the cache commit.

An operation completed at an update safety point after native preparation succeeds or fails.