Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: RapperCerberus on September 10, 2021, 03:00:32 AM

Title: Can playmaker control audiomixer volume? <Problem Solved!>
Post by: RapperCerberus on September 10, 2021, 03:00:32 AM
I just wanna make a slider to control BGM/soundeffect/voice volume. My audiomixer is already set up, but I don't know how to use PM to control its volume. I tried to drag audiomixer into PM editor window but it said no action found. And I searched Audiomixer on eco I just found "get/set Audiomixer float". Can these actions control audiomixer volume?

===================================================

Thanks to @600, with this OG's help, problem solved.
Btw for anyone wanna know how to get this done:
1, Create Audiomixer and different groups(like BGM, sound effect, voice...)
2, Get <Audio Mixer Set Float Value> action for your PM
3, Left click on the group you want, such like "voice" group. Find Attenuation/Volume on Inspector panel, and Right click on it. Select <Expose 'Volume (of voice)' to script>.
4, Find Exposed Parameters in Audiomixer window on the right-top corner. Click on it and change the name of the last exposed parameter, in this case, to <voice volume>(or any name you like).
5, Back to your PM, use <Audio Mixer Set Float Value> action,  and input the name of the last exposed parameter, AKA <voice volume>, and set the volume.

PS    this volume float is not percentage, it's dB value.
Title: Re: Can playmaker control audiomixer volume?
Post by: PolyMad on September 10, 2021, 04:14:23 AM
I was just going to post something about the AudioMixer groups, that are a really GREAT thing to manage audio along the whole app.
I tried with the float variable but it didn't work. I think we need a new action in the ExoSystem  :-*
Title: Re: Can playmaker control audiomixer volume?
Post by: PolyMad on September 12, 2021, 04:59:01 AM
Up!
Title: Re: Can playmaker control audiomixer volume?
Post by: RapperCerberus on September 12, 2021, 09:37:34 PM
Yep. Hope they're working on it.
Title: Re: Can playmaker control audiomixer volume?
Post by: 600 on September 13, 2021, 03:32:21 AM
Yes use the float action, have to expose parameter - info in the AudioMixer window upper right corner.
By selecting channel see inspector to expose.
Then add that in to the action.
Can do that for any channel, screenshot below, drop the channel in the mixer slot.
Title: Re: Can playmaker control audiomixer volume?
Post by: RapperCerberus on September 13, 2021, 10:11:58 PM
It works! Thank you buddy!   o7