When pressing the button play the sound to next scene
Hello friends,
I am new to unity3d... so.. I have 3 buttons on my first scene and a button "Next Scene".
How is it possible when the user press the first button and then press the "Next Scene" button to play this sound at my second scene?
Thanks George
Answer by getyour411 · Sep 28, 2015 at 07:01 AM
OnLevelWasLoaded is one way, or you could in the first scene have the clip.Play() attached to simple gameobject that is DontDestroyOnLoad so that sound will play during the scene transition.
Your answer
![](https://koobas.hobune.stream/wayback/20220612035146im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Strange (Undesired) Audio Looping with PlayOneShot on Android Lollipop 5.1.1 0 Answers
Play test sound when slider's value is changed and mouse button got released. 0 Answers
Getting path string from file. 1 Answer
Missing sound in iOS applications 0 Answers
How to compare audio sequences in unity 0 Answers