You cannot create a Playlist Controller dynamically. Your Playlist Controller(s) should already exist from the Bootstrapper Scene. Then in each other Scene, you set up 1 or more dynamic Playlists. To use them, you have to assign the Playlist to a Playlist Controller. EventSounds can do this with Change Playlist command.
Let me explain you my scenario, i cannot keep a single playlist throughout the game, its a audio heavy game. Now i have a playlist for menu, Playlist "A", with platlist controller "PLA", in the game scene i have a dynamic playlist defined Playlist "B", when i switch scene i keep the same playlist controller "PLA" ,and try to switch to playlist to "B" in the start function of my audio script, using the function call : m_controller.ChangePlaylist("B"); It always returns an error that playlist "B" cannot be found, although i can see the playlist"B" in master audio prefab.
So i can't assign the playlist, since i can't find it even though its there.
Please reply back with a detailed way of using dynamic playlists correctly.
Post by DarkTonic Dev on May 10, 2014 19:52:05 GMT
Looking at the code, I think if you change line 46 of DynamicSoundGroupCreator.cs to this, it will work:
Is says "void Start()" right now. I believe what's happening is the dynamic playlist is created just after your code is called. This should fix it. I reproduced this bug in on my computer and this fixed it. This fix will be in the version update.