Skip to content

Project demonstrating how to use input logging to create a replay system, where the replay is viewed by replaying the inputs with a deterministic fixed timestep.

Notifications You must be signed in to change notification settings

moto2002/UnityReplaySystem

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnityReplaySystem

Project demonstrating how to use input logging to create a replay system, where the replay is viewed by replaying the inputs with a deterministic fixed timestep.

Tanks battling in play mode Tanks battling in replay mode

Video demonstration here

Game runs on a fixed timestep to ensure that it plays out deterministically regardless of framerate. Inputs are polled during the Update loop and then "flattened" into a single input structure to be queried during the next FixedUpdate.

These inputs are cached by the ReplayLogger class, which in turn are played back by the ReplayInputController after the game has completed.

VHS effect is from this repository.

About

Project demonstrating how to use input logging to create a replay system, where the replay is viewed by replaying the inputs with a deterministic fixed timestep.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 91.9%
  • ShaderLab 8.1%