Search Unity

Ghost recording and playback script

Discussion in 'Made With Unity' started by SamohtVII, Sep 1, 2019.

  1. SamohtVII

    SamohtVII

    Joined:
    Jun 30, 2014
    Posts:
    370
    Hi Everyone,

    I have recently updated/polished my ghost recording and playback script. The code has been cleaned up and also I have separated the ability to save and load a ghost from a file. As well as tidied an issue where it would require a tag to be created it now does that automatically for you. I have also updated the documentation to help understand how it works as well as expand the functionality to add any other variables you would like tracked besides just movement and rotation.

    Ghost Recording and Playback Script >

    The asset itself allows you to drag and drop a script onto any object and record it's movement and rotation until the recording is stopped. The script will create a transparent ghost and will be played back or can be saved to disk to be recovered on command.

    Here is the script being implemented in my own racing game as a demonstration.