Music
A Music
object is an instance you can create from code to play one of the music tracks previously created in the Audio Creator window under the Music tab. It represents a complete music trackβsuch as background themes, main themes, or any audio requiring continuous or atmospheric playback.
π How to create a Music
object
Music
objectTo use music from code, you must first create the track in the Audio Creator, and then invoke it using its tag or its Track
identifier. For example:
Or if you're using a Track directly:
π Advanced Example
π Configuration of a dungeon theme with low volume, 2.5-second fade-out, loop enabled, and a callback when paused.
Last updated