DontDestroyOnLoad - hide

Hi there,
A gameobject plays a Soundfile in all scenes through this Code :

`function Awake()

{

	// LOAD

    DontDestroyOnLoad(this.gameObject);

}

`

But i want to hide this sound in a special scene.
May you can help.

There shouldn’t be a sound file playing based off of just that line of code in every scene with Awake called. You would actually have to call playing a sound file inside your Awake method.

Most likely your Audio Sources are set to play on Awake, which is a variable set in the inspector.

oh yes… thanks :wink:

oh em yes…
thanks for help.