Recording player movement and replaying it

Hi, I’m trying to create a script that records the player’s movement and replays the movement in another character. However, I’m quite new to Unity and am not really sure how to do this.

Any help would be greatly appreciated, thanks

No one can help with this?

Exact replays is probably one of the harder problems to solve in general, game-development wise. You generally have to save enough states to recreate the actions over the time frame (perhaps using interpolation), or only save deltas and/or control events, which requires complete determinism.

I’d say that the details will probably depend on exactly what you want to do and what the context is. For example, are you moving your character manually? Using a rigid body? The character controller component? Do you only need the other character to follow the same actions, or do you need to replay an entire scene, including environmental effects and so on? How much time do you want to replay? Etc.

Maybe there’s a good answer out there for this already. I admit I didn’t search the forums before posting this, but you might trying searching for e.g. ‘replay’ and see what you find.