This Asset contains a solution for game replays.
It is a Non-Deterministic State Storage Replay System. Suitable to track motions in game.
Check out a demo and example game at http://www.itsMilkid.com
Features:
-Includes Recording, Rewinding, Playback,FastForward and Slow Motion!
-Includes Example Scene
-Easy to adjust
-Easy to implement into existing projects
Description:
What I was aiming for creating this Asset was a system that keeps track of one or several objects positions and rotations at a certain point of time. I started out creating a struct RecordKeyFrame to hold those values.
The Recorder script is basically a little state machine in itself that does take care of recording and replaying in different modes. I included a regular replay, which replays the scene in its normal time scale, a fast forward mode, a slow-motion mode and one for rewinding which plays the scene backward. I am aware that there would be a bunch of other things you could do – so I made sure to give you the option of tweaking the timescale values in the inspector.
The RecordManager class is responsible for triggering a state. In the case of my example, I am working with UI Buttons – but you can tailor it to your liking and just wire it up however it is necessary for your game. My solution is basically just meant as a guide and a demonstration aid.
Setup:
The Recorder Script does record the movement and rotation of the game object it is attached to, therefore it should be attached to any object you want to record.
The RecordManager has to exist exactly once in the scene, just like I did in my demo scene – you should attach it to an empty game object in your scene.
Asset Store Link
Feel free to use this thread for discussions, questions and suggestions.