Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework > API/Runtime/Engine/GameFramework/AGameModeBase
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/GameModeBase.h |
| Include | #include "GameFramework/GameModeBase.h" |
UFUNCTION (BlueprintImplementableEvent, Category=Game,
Meta=(DisplayName="OnChangeName", ScriptName="OnChangeName"))
void K2_OnChangeName
(
AController * Other,
const FString & NewName,
bool bNameChange
)
Remarks
Overridable event for GameMode blueprint to respond to a change name call
Parameters
| Name | Description |
|---|---|
| Controller | The controller of the player to change the name of |
| NewName | The name to set the player to |
| bNameChange | Whether the name is changing or if this is the first time it has been set |