# Sandbox.MusicComponent.StopOnDisable

```csharp
bool StopOnDisable { get; set; }
```

Stop the music when this component is disabled or destroyed, if it's still the track playing.
Turn off to let it carry on, e.g. across a scene load.

Declared in [Sandbox.MusicComponent](/api/Sandbox.MusicComponent).
Assembly: `Sandbox.Engine`.
