Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/AGameMode
Warnings * this is called before actors' PreInitializeComponents.
Description
- Initialize the game. The GameMode's InitGame() event is called before any other functions (including PreInitializeComponents() ) and is used by the GameMode to initialize parameters and spawn its helper classes.
-
this is called before actors' PreInitializeComponents.
Virtual Inheritance
- AGameModeBase::InitGame → AGameMode::InitGame
| Name | InitGame |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/GameMode.h |
| Include Path | #include "GameFramework/GameMode.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameMode.cpp |
virtual void InitGame
(
const FString & MapName,
const FString & Options,
FString & ErrorMessage
)