Adaptive music – re-sequencing in Unity

How to set up adaptive music in Unity with C# as vertical layering?

To show how our adaptive music works in a video game, we created two demonstrations using the game engine Unity and C#.

The player sends out a raycast pointing down. It is queried which plane the raycast hits.

Each plane is assigned to a mixer-snapshot. Depending on which plane the player jumps to, the corresponding mixer-snapshot is activated and the single tracks fades over.

The planes in our video-games-examples could be different states in a game level. In the picture below we show the essential C# code.

Get the hybrid cyberpunk soundtrack “Noir Gravity” for free and see how easily our music can be adapted to your video game: How do you set up our adaptive music?