Adding an Action Replay to a Game - Unity Game Development Tutorial
In this Unity game development tutorial we're going to look at how we can add an action replay to our game. We'll look at how to add a standard replay, a rewind, a slow motion replay, and how to pause on any part of the replay. You can either watch the video version below or continue reading for written instructions. Right, we're going to start with the project we created in our ' Target Selection ' tutorial. In this tutorial, we created a tower of blocks that we can target with the mouse, before clicking the left mouse button to fire the ball. To add an action replay to our scene, we need to record what has happened in each frame. So the first thing we'll do is create a C# class to hold the information we want to record. To do this we'll click on the plus button on the project panel and select C# script. We'll call this script ActionReplayRecord. We'll double click to open it in Visual Studio and change it to match the following. using U