UWorld::SetGameState

Sets the current GameState instance on this world and the game state's level collection.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/World.h

Include

#include "Engine/World.h"

Source

/Engine/Source/Runtime/Engine/Private/World.cpp

Syntax

void SetGameState
(
    AGameStateBase * NewGameState
)

Remarks

Sets the current GameState instance on this world and the game state's level collection.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss