RealDocs

AGameModeBase::GameSessionClass

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

Description

The AGameSession subclass this game mode spawns to handle login approval and the online game interface. Set it in the class defaults to point at your custom session class.

Caveats & Gotchas

  • AGameSession only exists on the server and in standalone. It is never spawned on clients, so reading this on a client will access the default value, not a live instance.
  • GetGameSessionClass() can override this at runtime — if you have both, the virtual function takes precedence.

Signature

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Classes)
TSubclassOf<AGameSession> GameSessionClass

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.