Music settings for entire Game

Hello, is there any way i could settings my volume for music for entire game? i mean what i do now for music background still “off” i think…

so i create an empty object called “music_bg” and attach a music there, and change it to 2D sound. At the object i add script, containing DontDestroyOnLoad(); so the bg_music is still keep going on next scene…

and until i go to GameWorld, i destroy the object… so it wont play the music anymore, while i change the music to another sounds…

but, after i come back to scene before GameWorld, the sound is missing…(ofc, because i destroy it!) but is there anyway to make re-appear and start over the music from first?
still couldn’t find the good tuts for this thou…

Thanks before.

Save your background music object as prefab. When you load your scene before GameWorld, just check if object exists and if not, then instantiate it.

public GameObject bgMusic;

	void Start ()
	{
		if(!GameObject.Find ("ObjectName"))
			Instantiate (bgMusic, Vector3.zero, Quaternion.identity);
	}