Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework > API/Runtime/Engine/GameFramework/AGameModeBase
Warnings * this is called before actors' PreInitializeComponents.
- AGameModeBase::InitGame()
- AGameMode::InitGame()
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/GameModeBase.h |
| Include | #include "GameFramework/GameModeBase.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameModeBase.cpp |
virtual void InitGame
&40;
const FString & MapName,
const FString & Options,
FString & ErrorMessage
&41;
Remarks
- 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.