playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
AudioListenerSetPause
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: AudioListenerSetPause (Read 2186 times)
PET
Full Member
Posts: 139
AudioListenerSetPause
«
on:
January 26, 2016, 06:06:25 AM »
Hello,
I'm using this:
https://github.com/jeanfabre/PlayMakerCustomActions_U3/blob/master/Assets/PlayMaker%20Custom%20Actions/Audio/AudioListenerSetPause.cs
My main idea is to pause all the sounds when I'm in a pause state (Scale Time = 0).
It works... however when I resume the sounds are still paused, they don't resume playing.
Not only that but if I Stop/Start my game... even on the Run state my sounds are still not playing. I have to exit Unity, enter unity... and now when I Run my game I have my sounds.
Any ideas?
Thank You
/PET
Logged
Technical Game Designer
www.GamerPET.com
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: AudioListenerSetPause
«
Reply #1 on:
January 26, 2016, 07:43:14 AM »
Hi,
This is odd since this pause features only affect the listener, not the sounds being played.
Is it working when you publish it? or is not working at all, both within the editor and when published?
Bye,
Jean
Logged
PET
Full Member
Posts: 139
Re: AudioListenerSetPause
«
Reply #2 on:
January 26, 2016, 08:08:20 AM »
Hello Jean,
it's also when you build. I did a test build... same problem.
This is my state machine:
When I go back to the "Start" state machine the sounds still remain muted.
EDIT: It's weird because the sounds don't happen at all. I have another state machine that has a FINISH event when a sound finishes. Well I never get to the second state because the sound is not being played.
As I have said, I need to exit Unity and open it again. Then I get my sound back.
«
Last Edit: January 26, 2016, 09:31:46 AM by PET
»
Logged
Technical Game Designer
www.GamerPET.com
PET
Full Member
Posts: 139
Re: AudioListenerSetPause
«
Reply #3 on:
January 28, 2016, 08:40:27 AM »
Logged
Technical Game Designer
www.GamerPET.com
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: AudioListenerSetPause
«
Reply #4 on:
January 29, 2016, 12:41:46 AM »
Hi,
I can't reproduce here, I can use this action fine, pause and unpause at will.
which version of Unity are you working with?
Bye,
Jean
Logged
PET
Full Member
Posts: 139
Re: AudioListenerSetPause
«
Reply #5 on:
January 29, 2016, 04:14:15 AM »
It's Unity 5.3.1f1
I go to the pause state where I pause the sound but when I resume the sound still remains paused
Logged
Technical Game Designer
www.GamerPET.com
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
AudioListenerSetPause