How to record the entire game and user behaviour for a research project?

For a research project we would like to record the entire game. Meaning all user actions (especially mouse movement since a keyboard cannot be used) and the camera position linked with a timestamp.

Afterwards we would like to review the user’s behaviour(Pause, Play, Forward …). I imagine viewing the behaviour in the editor. Does an extension or code exist to achieve this?

If nothing exists we would prioritize the camera recording. How can we track the camera waypoints and view them afterwards?

Thank you for your help!

My thinking: if you have only a little amount of object and for a short amount of time, you could simple have a function that every 1/2 second takes the transform of those objects and records it on a file. When replaying, you are somehow storing those information in an array and playing an “animation” where each object move each from first value to second to third and so on until you reach the end of the array which logically should be all object at the same time marking the end of the playing.

You may also have a look at the UnitySerializer which is free on the asset store.