RealDocs

AGameModeBase::GameSession

property Engine Since 4.14
#include "GameFramework/GameModeBase.h"
Access: public Specifiers: UPROPERTYTransient

Description

The live AGameSession instance spawned by this game mode. Handles login arbitration and communicates with online subsystems (Steam, EOS, etc.).

Caveats & Gotchas

  • Only valid on the server and in standalone play. On clients this pointer is always null — the GameSession actor is never replicated.
  • Marked Transient — not saved with the level. This reference is rebuilt every time the map loads.

Signature

UPROPERTY(Transient)
TObjectPtr<AGameSession> GameSession

Version History

Introduced in: 4.14

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.