RealDocs

UAudioComponent::SubtitlePriority

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

Description

Overrides the priority used by the subtitle manager to decide which subtitle wins when multiple wave instances from this component want to display one at once.

Caveats & Gotchas

  • Only takes effect if bOverrideSubtitlePriority is true; otherwise the subtitle manager uses its own default priority handling for the sound.
  • This is unrelated to the audio voice-culling Priority property — a sound can have low audio priority (and be virtualized) while still having high subtitle priority, or vice versa.

Signature

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Subtitles, meta = (ClampMin = "0.0", UIMin = "0.0", EditCondition = "bOverrideSubtitlePriority", DisplayAfter = "SuppressSubtitles"))
float SubtitlePriority;

Example

Prioritize dialogue subtitles over ambient sound subtitles C++
DialogueComponent->bOverrideSubtitlePriority = true;
DialogueComponent->SubtitlePriority = 100.0f;

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.