Replay System
Use GAMEPLAY_REPLAY in Projects Settings->Player->Scripting Define symbols to enable this mode
The project includes an internal replay system for debugging, QA, and regression testing.
What it records
A replay session stores:
Level number
Seed
Initial field states
Player moves
Bonus activations
Action timing
Enable it
Add the GAMEPLAY_REPLAY scripting define symbol in Unity:
Project Settings > Player > Scripting Define Symbols
Without this define, replay recording and playback are disabled.
Hotkeys
F4- Save replay toAssets/Tests/Resources/ReplaysF5- Save replay toApplication.persistentDataPath/gameplay_replay.jsonF6- Load and play the last saved replay
How to use
Start a level.
Play normally.
Save the session with
F5.Press
F6to load and replay it.
In the Unity Editor, F4 saves the replay into the project so it can be used in tests.
Notes
Replay playback recreates the level using the saved seed and initial board state, then replays the recorded actions in order.
Last updated