New answers tagged

0

Simply add this line in your Start() function: DontDestroyOnLoad(gameObject); this shall enable your object to continue on to the next scene, however I'm not sure if this will work for the audio to play continuously, if it doesn't then what you could do is before loading a new scene get the playback time of the audio currently, and then in the new scene just ...


1

I hope this code I wrote helps you. If you have any more questions please ask. using UnityEngine; using UnityEngine.UI; public class NewBehaviourScript : MonoBehaviour { private AudioSource src; public Slider slider;// This is so we can drag the slider to the inspector view ot this script // Use this for initialization void Start () { ...



Top 50 recent answers are included