Class that lets you add custom Jukebox Tracks from embedded audio
public abstract class ModJukeboxTrack : BTD_Mod_Helper.Api.NamedModContent
Inheritance System.Object ModContent NamedModContent ModJukeboxTrack
If set, will load from an embedded AssetBundle with this name rather than directly from an embedded resource
public virtual string AssetBundleName { get; }
The final AudioClip used for this track
public virtual AudioClip AudioClip { get; }
Name of the AudioClip to use for this track.
If loading directly from an embedded resource in your project, simply include the name of the audio file without the extension
If your loading the AudioClip from AssetBundleName, this should be exact name of the asset within the bundle
public virtual string AudioClipName { get; }
The in game description of this
public sealed override string Description { get; }
The name that will actually be display when referring to multiple of these
public sealed override string DisplayNamePlural { get; }
Whether to hold off on creating this track's AudioClip until the game actually asks to play it,
instead of during loading.
public virtual bool LazyLoadClip { get; }
How many lazily loaded clips to keep in memory at once across all mods.
public static int MaxLoadedLazyClips { get; set; }
The BTD6 MusicItem that gets created for this track
public MusicItem MusicItem { get; set; }
Il2CppAssets.Scripts.Data.Audio.MusicItem
Creates the MusicItem for this track
public virtual MusicItem CreateMusicItem();
Il2CppAssets.Scripts.Data.Audio.MusicItem
the MusicItem
Creates the AudioClip for a LazyLoadClip track. Called on the main thread the first time the
game asks for the clip, so it needs to be reasonably quick.
protected virtual AudioClip LoadClip();