RealDocs

UKismetSystemLibrary::MakeLiteralName

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

Description

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

Caveats & Gotchas

  • FName comparisons are case-insensitive and values are stored in a global name table — constructing many unique names at runtime (rather than using literals) grows that table for the life of the process.
  • Pure pass-through in C++; only exists to give the Blueprint compiler a node representing a name constant.

Signature

static FName MakeLiteralName(FName Value)

Parameters

Name Type Description Default
Value FName Value the literal name node should return.

Return Type

FName

Example

Literal pass-through C++
FName Value = UKismetSystemLibrary::MakeLiteralName(FName(TEXT("Socket_Weapon")));

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.