DynamicMusic
A DynamicMusic instance lets you play multiple music tracks simultaneously, perfectly synchronized. Itβs perfect for adaptive soundtracks where different instrumental layers (e.g., drums, strings, vocals) are turned on or off at runtime based on gameplay. Use the same music tracks you created in the Audio Creator window under the Music tab.
All tracks must be exactly the same length or they can drift out of sync.
π How to create a DynamicMusic
DynamicMusic
Group your pre-created tracks by their tags or by the Track
enum identifiers. For example, to build a layered theme:
Or using the Track
enum directly:
π Advanced Example
π This sets up an adaptive soundtrack that begins with a soft base layer and then intensifies by bringing in percussion when combat begins.
Last updated