Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Kismet > UGameplayStatics
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Kismet/GameplayStatics.h |
Include | #include "Kismet/GameplayStatics.h" |
Source | /Engine/Source/Runtime/Engine/Private/GameplayStatics.cpp |
UFUNCTION (BlueprintCallable, Meta=(WorldContext="WorldContextObject", AdvancedDisplay="1"),
Category="Game")
static FString GetCurrentLevelName
(
const UObject * WorldContextObject,
bool bRemovePrefixString
)
Remarks
Get the name of the currently-open level.
Parameters
Name | Description |
---|---|
bRemovePrefixString | remove any streaming- or editor- added prefixes from the level name. |