RealDocs

UAudioComponent::Stop

function Engine Blueprint Since 4.0
#include "Components/AudioComponent.h"
Access: public Specifiers: virtualUFUNCTIONBlueprintCallable

Description

Immediately stops the sound playing on this component and fires OnAudioFinished. Any active fade is cancelled.

Signature

virtual void Stop()

Return Type

void

Caveats & Gotchas

  • Stop() is immediate with no fade-out. Use FadeOut() for a smooth stop.
  • OnAudioFinished fires even when Stop() is called explicitly, so delegate handlers should account for both natural completion and manual stops.
  • If bAutoDestroy is true on the component, it will be garbage-collected shortly after Stop() returns. Do not cache or use the pointer afterward.

Example

Stop audio conditionally C++
if (MyAudioComp->IsPlaying())
{
    MyAudioComp->Stop();
}

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.