I have a audio source on my main menu, i would like it so when i click "Options" and it goes to a new scene, it resumes playing the song at the exact time it stopped on the new scene.
Answer by ynka
Jan 28, 2013 at 01:45 AM
Use AudioSource.timeSamples (http://docs.unity3d.com/Documentation/ScriptReference/AudioSource-timeSamples.html) or AudioSource.time (http://docs.unity3d.com/Documentation/ScriptReference/AudioSource-time.html).
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
10 People are following this question.
Modifying pitch/speed audio parameters by script (As in AudioSource)
GameObject reacts to audio source
Adding Audio clip in scripting
What does the numSamples parameter in GetOutputData actually mean?
How to play multiple audio clips in a row?