RealDocs

UAudioComponent::IsPlaying

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

Description

Returns true if this component's sound is currently active, including while paused or fading in/out.

Caveats & Gotchas

  • Despite the name, a paused sound still reports IsPlaying() == true — use GetPlayState() to distinguish Paused from an actively-audible state.
  • Overrides ISoundParameterControllerInterface::IsPlaying rather than a Scene/ActorComponent method, so it reflects the component's own tracked ActiveCount state rather than a live query of the audio render thread.

Signature

virtual bool IsPlaying() const override

Return Type

bool

Example

Guard against double-playing a sound C++
if (!AudioComp->IsPlaying())
{
    AudioComp->Play();
}

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.