RealDocs

UAudioComponent::StopDelayed

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

Description

Requests that this component's sound stop after the given delay in seconds, stopping immediately if the delay is zero or negative.

Caveats & Gotchas

  • The delay is scheduled against game time, so pausing the game or destroying the component before it elapses can prevent the stop from ever firing — don't rely on it for guaranteed cleanup.
  • Unlike FadeOut, this doesn't ramp the volume down over the delay period — the sound plays at full volume until the delay expires and then cuts off.

Signature

void StopDelayed(float DelayTime)

Parameters

Name Type Description Default
DelayTime float Delay, in seconds, before the sound is stopped. A value of zero or less stops immediately.

Return Type

void

Example

Stop an alarm after a few seconds C++
AudioComp->Play();
AudioComp->StopDelayed(5.0f);

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.