UAudioComponent::OnQueueSubtitles
#include "Components/AudioComponent.h"
Access: public
Specifiers: UPROPERTY
Description
Delegate invoked when this component's sound sends subtitles to the SubtitleManager. Bind it to intercept subtitle cues and route them somewhere other than the default subtitle display.
Caveats & Gotchas
- • This is a single (non-multicast) dynamic delegate — binding a new function replaces any previously bound one rather than adding a second listener.
- • It's a plain UPROPERTY, not BlueprintAssignable, so it can only be bound from C++; there is no equivalent Blueprint 'Assign' node.
- • Binding this delegate does not automatically suppress the default subtitle display — pair it with bSuppressSubtitles if you want to fully replace the built-in behaviour instead of augmenting it.
Signature
FOnQueueSubtitles OnQueueSubtitles Example
Intercept subtitle cues in C++ C++
AudioComponent->OnQueueSubtitles.BindDynamic(this, &AMyActor::HandleSubtitles);
void AMyActor::HandleSubtitles(const TArray<FSubtitleCue>& Subtitles, float CueDuration)
{
// Route subtitles to a custom UI widget instead of the default display
} Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?