RealDocs

UKismetSystemLibrary::MakeLiteralBool

function Engine Blueprint Since 4.0
#include "Kismet/KismetSystemLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintPureBlueprintThreadSafe

Description

Returns the bool passed in unchanged. Backs Blueprint's literal boolean node, letting a constant true/false be wired into a bool pin.

Caveats & Gotchas

  • Pure pass-through with no side effects; calling it from C++ is never useful over using the literal directly.
  • Exists purely so the Blueprint compiler has a node to represent a boolean constant.

Signature

static bool MakeLiteralBool(bool Value)

Parameters

Name Type Description Default
Value bool Value the literal boolean node should return.

Return Type

bool

Example

Literal pass-through C++
bool bValue = UKismetSystemLibrary::MakeLiteralBool(true);

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.