Class "MusicManager"⚓︎
Info
This class can be accessed by using its constructor:
Example Code
1 |
|
Constructors⚓︎
Music·Manager ()⚓︎
MusicManager MusicManager ( )⚓︎
Returns a MusicManager object.
Example Code
Example usage:
1 |
|
Functions⚓︎
Crossfade ()⚓︎
void Crossfade ( Music ID, float FadeRate = 0.08 )⚓︎
Bug
If the ID parameter is negative or falls out of the allowed range of music IDs, this function will crash the game.
Disable ()⚓︎
void Disable ( )⚓︎
Disable·Layer ()⚓︎
void DisableLayer ( int LayerId = 0 )⚓︎
Enable ()⚓︎
void Enable ( )⚓︎
Enable·Layer ()⚓︎
void EnableLayer ( int LayerId = 0, boolean Instant = false )⚓︎
Fadein ()⚓︎
void Fadein ( Music ID, float Volume = 1, float FadeRate = 0.08 )⚓︎
Fadeout ()⚓︎
void Fadeout ( float FadeRate = 0.08 )⚓︎
Get·Current·Music·ID ()⚓︎
Music GetCurrentMusicID ( )⚓︎
Get·Queued·Music·ID ()⚓︎
Music GetQueuedMusicID ( )⚓︎
if nothing is queued, return the current music id
Is·Enabled ()⚓︎
boolean IsEnabled ( )⚓︎
Is·Layer·Enabled ()⚓︎
boolean IsLayerEnabled ( int LayerId = 0 )⚓︎
Pause ()⚓︎
void Pause ( )⚓︎
Pitch·Slide ()⚓︎
void PitchSlide ( float TargetPitch )⚓︎
Play ()⚓︎
void Play ( Music ID, float Volume = 1 )⚓︎
Bug
If the ID parameter is negative or falls out of the allowed range of music IDs, this function will crash the game.
Queue ()⚓︎
void Queue ( Music ID )⚓︎
Reset·Pitch ()⚓︎
void ResetPitch ( )⚓︎
Resume ()⚓︎
void Resume ( )⚓︎
Update·Volume ()⚓︎
void UpdateVolume ( )⚓︎
This function sets the music volume to the volume defined in the options menu.
Volume·Slide ()⚓︎
void VolumeSlide ( float TargetVolume, float FadeRate = 0.08 )⚓︎
Last update:
April 26, 2024