Maestro - Midi Player Tool Kit for Unity Version 2.18.2
Loading...
Searching...
No Matches
Download and Cache Control

Control caching, reuse, and download-only behavior for external SoundFonts. More...

Variables

bool MidiPlayerTK.MPTKSoundFont.LoadFromCache
 Whether to reuse previously downloaded SoundFonts if available. Default is true.
Folder: Application.persistentDataPath/"DownloadedSF".
bool MidiPlayerTK.MPTKSoundFont.SaveToCache
 Whether to store the loaded SoundFont in a local cache. Default is true.
Folder: Application.persistentDataPath/"DownloadedSF".
bool MidiPlayerTK.MPTKSoundFont.DownloadOnly
 Whether to only download the SoundFont. When true, the SoundFont is not loaded in the MidiSynth. Default is false.

Detailed Description

Control caching, reuse, and download-only behavior for external SoundFonts.

Variable Documentation

◆ DownloadOnly

bool MidiPlayerTK.MPTKSoundFont.DownloadOnly

Whether to only download the SoundFont. When true, the SoundFont is not loaded in the MidiSynth. Default is false.

Note
  • Set SaveToCache to true to save the SoundFont in the local cache.
  • Set LoadFromCache to false to force the SoundFont download.
  • Interesting only for external soundfont, useful to download a SoundFont in the background and load it later in many MidiSynths.