Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/AGameModeBase
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.
Derived Overrides
| Name | InitGame |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/GameModeBase.h |
| Include Path | #include "GameFramework/GameModeBase.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameModeBase.cpp |
virtual void InitGame
(
const FString & MapName,
const FString & Options,
FString & ErrorMessage
)