UKismetTextLibrary::Conv_BoolToText
#include "Kismet/KismetTextLibrary.h"
Access: public
Specifiers: staticBlueprintPureBlueprintAutocast
Description
Converts a boolean value to formatted text, either 'true' or 'false'. Backs the 'To Text (Boolean)' Blueprint autocast node.
Caveats & Gotchas
- • The resulting words are localized culture-invariant literals ('true'/'false') and are not user-facing friendly labels — build your own FText for UI strings like 'Enabled'/'Disabled'.
- • Because it's marked BlueprintAutocast, any bool pin connected to a text input pin in Blueprint is silently converted with this function, which can hide unintended conversions during graph review.
Signature
static FText Conv_BoolToText(bool InBool); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| InBool | bool | The boolean value to convert. | — |
Return Type
FText Example
Convert a flag to text for logging C++
bool bIsReady = true;
FText StatusText = UKismetTextLibrary::Conv_BoolToText(bIsReady); // "true" Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?