x


Audio keeps playing when paused

I am working on a game that has a pause screen. Whenever i press the Escape Key to pause the game, all the audio keeps on playing. If anyone can help me out by telling me what the basic syntax is to pause audio and to resume the audio where it left off, that would be extremly helpful.

more ▼

asked Apr 20 '11 at 03:14 PM

Alex 9 gravatar image

Alex 9
79 19 18 20

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first
if(player pauses game)
{
http://unity3d.com/support/documentation/ScriptReference/AudioSource.Pause.html
http://answers.unity3d.com/questions/51263/how-to-pause-and-resume-music-after-pausing-game
http://www.google.com/search?client=opera&rls=en&q=pause+audio+unity3d&sourceid=opera&ie=utf-8&oe=utf-8&channel=suggest

//Please google your question next time.  Thanks.
}
more ▼

answered Apr 20 '11 at 03:18 PM

Justin Warner gravatar image

Justin Warner
6.3k 19 27 65

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1031
x262
x224
x143
x18

asked: Apr 20 '11 at 03:14 PM

Seen: 1245 times

Last Updated: Apr 20 '11 at 03:14 PM