Adaptive music – re-sequencing in Unity

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

To show how my adaptive music works in a video game, I 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 my video games examples could be different states in a game level. In the picture below I show the essential C# code.

If you want to try it out for FREE you can: How do you set up my adaptive music?

 

PGRpdiBjbGFzcz0iX2JybGJzLWZsdWlkLXdpZHRoLXZpZGVvLXdyYXBwZXIiPjxpZnJhbWUgc3JjPSJodHRwczovL3d3dy55b3V0dWJlLW5vY29va2llLmNvbS9lbWJlZC9SSzEwdlIyVFBZbyIgd2lkdGg9IjU2MCIgaGVpZ2h0PSIzMTUiIGZyYW1lYm9yZGVyPSIwIiBhbGxvd2Z1bGxzY3JlZW49ImFsbG93ZnVsbHNjcmVlbiI+PC9pZnJhbWU+PC9wPjwvZGl2Pg==

PGRpdiBjbGFzcz0iX2JybGJzLWZsdWlkLXdpZHRoLXZpZGVvLXdyYXBwZXIiPjxpZnJhbWUgc3JjPSJodHRwczovL3d3dy55b3V0dWJlLW5vY29va2llLmNvbS9lbWJlZC9BM05BaUNnUzA2OCIgd2lkdGg9IjU2MCIgaGVpZ2h0PSIzMTUiIGZyYW1lYm9yZGVyPSIwIiBhbGxvd2Z1bGxzY3JlZW49ImFsbG93ZnVsbHNjcmVlbiI+PC9pZnJhbWU+PC9wPjwvZGl2Pg==