playMaker

Author Topic: 'Plays Sound' Action Option  (Read 1370 times)

jongkook

  • Playmaker Newbie
  • *
  • Posts: 22
    • View Profile
'Plays Sound' Action Option
« on: October 17, 2015, 03: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
« Last Edit: October 17, 2015, 09:36:11 PM by jongkook »

Tubbritt

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Re: 'Plays Sound' Action Option
« Reply #1 on: November 04, 2015, 10:57:20 AM »
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

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2484
  • Yup.
    • View Profile
    • Cleverous
Re: 'Plays Sound' Action Option
« Reply #2 on: November 05, 2015, 05: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.

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Re: 'Plays Sound' Action Option
« Reply #3 on: November 05, 2015, 04: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

Tubbritt

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Re: 'Plays Sound' Action Option
« Reply #4 on: November 06, 2015, 11:16:50 AM »
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.

johnchris

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Re: 'Plays Sound' Action Option
« Reply #5 on: April 25, 2016, 11:23:59 PM »
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.

Hi Lane link,

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