RealDocs

UKismetSystemLibrary::MakeLiteralString

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

Description

Returns the FString passed in unchanged. Backs Blueprint's literal string node, letting a constant string be wired into a string pin.

Caveats & Gotchas

  • Takes Value by-value rather than by const reference, so every call copies the string — irrelevant for a Blueprint literal node but worth knowing if calling it directly from C++ in a hot loop.
  • Pure pass-through; only exists to give the Blueprint compiler a node representing a string constant.

Signature

static FString MakeLiteralString(FString Value)

Parameters

Name Type Description Default
Value FString Value the literal string node should return.

Return Type

FString

Example

Literal pass-through C++
FString Value = UKismetSystemLibrary::MakeLiteralString(TEXT("Hello World"));

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.