RealDocs

UKismetSystemLibrary::GetGameName

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

Description

Returns the name of the current game/project.

Caveats & Gotchas

  • Returns the project name (from FApp::GetProjectName()), not the map name or a player-facing display title configured in project settings.
  • Marked BlueprintThreadSafe, so it's safe to call off the game thread.

Signature

static FString GetGameName()

Return Type

FString

Example

Log the project name at startup C++
UE_LOG(LogTemp, Log, TEXT("Running project: %s"), *UKismetSystemLibrary::GetGameName());

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.