Skip to Main Content

BTD_Mod_Helper​.Api​.Audio​.ModJukeboxTrack


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.Audio

ModJukeboxTrack Class

Class that lets you add custom Jukebox Tracks from embedded audio

public abstract class ModJukeboxTrack : BTD_Mod_Helper.Api.NamedModContent

Inheritance System.ObjectModContentNamedModContent  ModJukeboxTrack

Properties

ModJukeboxTrack.AssetBundleName Property

If set, will load from an embedded AssetBundle with this name rather than directly from an embedded resource

public virtual string AssetBundleName { get; }

Property Value

System.String

ModJukeboxTrack.AudioClip Property

The final AudioClip used for this track

public virtual AudioClip AudioClip { get; }

Property Value

UnityEngine.AudioClip

ModJukeboxTrack.AudioClipName Property

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; }

Property Value

System.String

ModJukeboxTrack.Description Property

The in game description of this

public sealed override string Description { get; }

Property Value

System.String

ModJukeboxTrack.DisplayNamePlural Property

The name that will actually be display when referring to multiple of these

public sealed override string DisplayNamePlural { get; }

Property Value

System.String

ModJukeboxTrack.MusicItem Property

The BTD6 MusicItem that gets created for this track

public MusicItem MusicItem { get; set; }

Property Value

Il2CppAssets.Scripts.Data.Music.MusicItem

Methods

ModJukeboxTrack.CreateMusicItem() Method

Creates the MusicItem for this track

public virtual MusicItem CreateMusicItem();

Returns

Il2CppAssets.Scripts.Data.Music.MusicItem
the MusicItem

To learn how to download BTD Mod Helper and install mods, click here