Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: jongkook on October 17, 2015, 06:08:26 AM

Title: 'Plays Sound' Action Option
Post by: jongkook on October 17, 2015, 06:08:26 AM
'play sound' Action option requests
Making a 2d game with Unity 5.
2d sound settings are required
So 'spatial Blend' option is required
Title: Re: 'Plays Sound' Action Option
Post by: Tubbritt on November 04, 2015, 12:57:20 PM
Yes please.

Since upgrading from 5.1.3p1 of Unity to 5.2.2p2 I've just run into this problem. My audio is now messed up and I don't know what to do.

A Spatial Blend slider is now badly needed for playmakers Play Sound action.

Regards
James
Title: Re: 'Plays Sound' Action Option
Post by: Lane on November 05, 2015, 07:37:55 AM
You can't. Its a limitation in Unity.

Previously the sound space was defined in the sound's Import Options. Since it is now tied to the Audio Source and PlayOneShot does not return an Audio Source to manipulate then its not possible at the moment. I'm not sure if they realized the ramifications of making that change.

I talked to Richard at Unity about this, not sure if its going to move forward any time soon. It seems like PlayOneShot is almost useless now so the solution is basically to just stop using it.

The better workflow is to add Audio Sources to anything playing a sound, then tell the Audio Source to Play as needed.
Title: Re: 'Plays Sound' Action Option
Post by: dudebxl on November 05, 2015, 06:39:38 PM
here you go:

http://hutonggames.com/playmakerforum/index.php?topic=11596.msg54296#msg54296

min unity 5.2+
plays one-shot or/and edit Audio source
Title: Re: 'Plays Sound' Action Option
Post by: Tubbritt on November 06, 2015, 01:16:50 PM
Thanks Lane,

Thank you too dudebxl. I've just replied to your thread. This is looking good to me, but I don't seem to be able to get the volume slider to work.

Kind regards
James.
Title: Re: 'Plays Sound' Action Option
Post by: johnchris on April 26, 2016, 02:23:59 AM
You can't. Its a limitation in Unity.

Previously the sound space was defined in the sound's Import Options. Since it is now tied to the Audio Source and PlayOneShot does not return an Audio Source to manipulate then its not possible at the moment. I'm not sure if they realized the ramifications of making that change.

I talked to Richard at Unity about this (http://fettermanandassociates.blogspot.com/), not sure if its going to move forward any time soon. It seems like PlayOneShot is almost useless now so the solution is basically to just stop using it.

The better workflow is to add Audio Sources to anything playing a sound, then tell the Audio Source to Play as needed.

Hi Lane link,

You are telling the true, I already encountered the same situation in the past.