Time trial ghosts for any kind of speed running game. I'll be working on a feature rich version on my Patreon
You can open the demo scene for a quick example. You'll need to drop in some kind of character. You can use my 2D Controller if you'd like.
Create an instance of the ReplaySystem:
private ReplaySystem _system;
private void Awake() => _system = new ReplaySystem(this);
To begin recording:
_system.StartRun(_recordTarget, _captureEveryNFrames);
To stop recording:
_system.FinishRun();
To play a recording:
_system.PlayRecording(RecordingType.Best, Instantiate(_ghostPrefab)); // The ghost should be a very basic prefab without colliders or rigidbodies. See the demo scene for an example.