Img

Game Stage

Description

Inherits from: State

Big state of a game like Boot, Meta, Core, etc.
They always spawned as children of Graph Root and by default live as root GameObjects of DontDestroyOnLoad scene
Also every GameStage has its own GameContext

Component

FieldDescription
Main State RefOptional. Reference to main state of stage to auto load
States ContainerTransform inside stage where all states of Base layer will be spawned
Popups ContainerTransform inside stage where all states of Popups layer will be spawned

Properties

PropertyDescription
ContextGameContext spawned on GameState

see State for inherited ones

Methods

MethodDescription
MoveToLoadedSceneMoves Stage GameObject to provided scene. This is to grant access to GameContext of scene to all substates
MoveToServiceSceneMoves Stage GameObject back to DontDestroyOnLoad scene. Useful while unloading scene

see State for inherited ones