AGameModeBase::ReplaySpectatorPlayerControllerClass
#include "GameFramework/GameModeBase.h"
Access: public
Specifiers: UPROPERTYEditAnywhereNoClearBlueprintReadOnly
Description
The PlayerController subclass spawned when watching a network replay. Override with a custom class to add scrubbing controls, stat overlays, or replay-specific camera logic.
Caveats & Gotchas
- • This controller is only spawned during replay playback, not during live spectating. Do not conflate with SpectatorClass.
- • Replay playback runs the game in a non-authoritative mode — avoid logic in this controller that assumes server authority or modifies game state.
Signature
UPROPERTY(EditAnywhere, NoClear, BlueprintReadOnly, Category=Classes)
TSubclassOf<APlayerController> ReplaySpectatorPlayerControllerClass See Also
Version History
Introduced in: 4.14
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?