Hi, I’m having an issue with the Master Audio extension where I can’t select sound from the dynamic group sound controller (DGSC) prefabs. Even typing in the name as a dynamicVariable doesn’t work. I should note that groups under the MasterAudio “Brain” Prefab works fine and without issue.
I reached out to DarkTonic and they wrote back saying this:
The Master Audio integration was written by the author of NodeCanvas and he sent us the package. You should reach out to him and have him fix it. It may help him to look at the code for SoundGroupAttribute in Master Audio, which does show Sound Groups from both Master Audio and DGSC’s.”
Is the prefab an instance in the scene, or are you trying to select from the prefab asset itself? If the later, then that would not be possible since (Unity wise) you can’t reference child object of *prefabs assets* directly.
Hi, sorry for the late response, got tied up with other work. It is an instance in the scene. There are two types of soundgroups in MA “MasterAudioGroup” and “DynamicSoundGroup”. It seems like the event scrips only reference the MasterAudioGroups.
I ended up making a new actiontask class just for the dynamic groups. Where I took your PlaySound script and just changed:
public BBParameter<MasterAudioGroup> soundGroup;
to
public BBParameter<DynamicSoundGroup> soundGroup;
And it seems to have got me where I need to be for the time being. Still it would be nice to be able to see all the available soundgroups from a single action.
Thanks for the follow up. I will take a look at the possibility to have both able to be referenced. That would be very easy if MasterAudioGroup and DynamicSoundGroup derive from the same type, or if the both implement an interface (I have yet to check if this is true or not), otherwise a custom editor will be needed just for those two.
Thanks!
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.