Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 945 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 945 Bytes

Unity-Timetrial-Ghost

Time trial ghosts for any kind of speed running game. I'll be working on a feature rich version on my Patreon

Instructions

Example

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.

Step by step

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.

Leave a ⭐ if you found it helpful!