- Home /
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.
Answer by Justin Warner · Apr 20, 2011 at 03:18 PM
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. }
Your answer
Follow this Question
Related Questions
Problem with audio after leaving pause menu 1 Answer
Music On/Off Switch 2 Answers
Audio Pausing Trouble 2 Answers
In game pause menu 2 Answers