|
Post by nategallardo on Oct 27, 2016 14:24:42 GMT
Hello,
I've noticed a quirk with the DSGCs, and I'm curious as to whether it's intended behaviour, a misunderstanding on my part or otherwise.
I want to use the DSGC to load an appropriate engine sound into my scene. I have the DSGC set up as a child of the space ship prefab, and then instantiate the ship prefab at runtime. However, using this method, the sounds don't get loaded into the MasterAudio game object. However, if I create the DSGC as a separate prefab, with the DSGC component on the root object, then it works fine.
I hope that's clear. Am I doing something wrong? I'd love to be able to use the workflow I describe.
Cheers, Nate
[EDIT] Oh I should say that I'm up to date with both MA and Unity.
|
|
|
Post by DarkTonic Dev on Oct 27, 2016 20:04:12 GMT
I can't reproduce this behavior at all, it works fine. The code to create dynamic items in the Master Audio fires from "OnEnable" which always gets called on all sub objects and scripts, regardless of whether it has a parent or not.
Are there any errors in the Console? If not, I have no way to troubleshoot and you will need to send me a project to look at.
|
|