lus6
New Member
Posts: 3
Posts: 3
|
Post by lus6 on Aug 10, 2020 11:41:29 GMT
I called the dsgc to the Instantiate and played a playSound, but it doesn't work.
However, i can playSound with the button.
So I guessed that I should not play right after Instantiate.
Is there a callback that I can call when dsgc ready?
|
|
|
Post by DarkTonic Dev on Aug 10, 2020 15:24:29 GMT
Once you enable the game object with DSGC on it, it will create all the items in Master Audio within that frame. After that you can play any of the sounds.
You can fire a Custom Event when all the sounds are created and use Event Sounds to listen for that Custom Event and do something, such as play a sound, when you know all of it is available.
However, if you called Instantiate on the DSGC and then tried to play a sound, that should work.
|
|