UGameplayStatics::AreSubtitlesEnabled
#include "Kismet/GameplayStatics.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns whether subtitle rendering is currently enabled globally. Use this to conditionally display subtitle-related UI or to read the current state before toggling.
Caveats & Gotchas
- • Returns the in-memory runtime state, not the persisted user preference; if you haven't yet applied the saved setting via SetSubtitlesEnabled, this may not reflect what the user has chosen.
- • This checks the global engine subtitle flag and is not per-player — there is no API to query subtitle state per local player.
Signature
static ENGINE_API bool AreSubtitlesEnabled() Return Type
bool Example
Toggle subtitles from a settings menu C++
bool bCurrentlyEnabled = UGameplayStatics::AreSubtitlesEnabled();
UGameplayStatics::SetSubtitlesEnabled(!bCurrentlyEnabled); See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?