Unify Runtime Recorder (URR) : A Powerful Recording Tool for Unity

Check links

Have you ever wanted to record your gameplay in Unity, but found it too difficult or cumbersome to do so? Do you wish you could easily capture and save your game scenes, audio, and video in high quality and with minimal performance impact? If you answered yes to any of these questions, then you might be interested in Unify Runtime Recorder (URR), a new recording tool made by New Media XP for the Unity game engine.

Unify Runtime Recorder (URR)

Some of the features and benefits of Unify Runtime Recorder are :

1. Easy to use

You can record gameplay via the inspector by attaching the UnifyRuntimeRecorder.cs script to a gameobject and enabling the AutomaticMode checkbox. You can also record gameplay via scripting by calling the various helper functions. You can control which frames are captured by setting the Capture variable as true or false.

The Unity Editor with the demo scene in the Game view, two white cubes, a white cylinder and the label UnityRuntimeRecorder, and the Unity Runtime Recorder (Script) component in the Inspector: Automatic Mode, Capture, Video and Sound checked, Output Dir D:/Recordings, Ffmpeg Path empty and Frame Rate 30
URR in the Inspector, under its old name, Unity Runtime Recorder

2. Flexible and configurable

You can specify various parameters and options for recording, such as the output directory, audio or video only or both, and more. You can also set up different capture pipelines for different scenes or purposes. It is also easy to debug with various levels of logging and important debug messages. Most functions are asynchronous and you can handle their completion as suitable.

3. High quality and performance

You can record gameplay in high quality and with minimal performance impact. The tool uses FFmpeg for encoding and decoding, which is a fast and reliable library that supports many formats and codecs. The tool also uses a separate thread for recording, which reduces the load on the main thread.

4. Cross-platform and compatible

You can use the tool in the editor and also in builds. It supports Windows and Linux platforms and works with Unity 2019.1.x and above. It also works with any camera or audio source in your game.

Getting started

URR uses FFmpeg to encode what it records. After you import the package, download FFmpeg (the full build, if you see a choice) and put the ffmpeg program at the path for your platform :

  • Windows: Assets/StreamingAssets/UnifyRuntimeRecorder/Libraries/Windows/ffmpeg.exe
  • Linux: Assets/StreamingAssets/UnifyRuntimeRecorder/Libraries/Linux/ffmpeg

You can also keep FFmpeg somewhere else and pass its path when you initialize the recorder.

To record in the editor, use automatic mode :

  • Attach the UnifyRuntimeRecorder.cs script to a gameobject. It is a singleton. Make sure that Automatic Mode is checked.
  • Choose an output directory and set the other options, such as Video and Sound.
  • Enter play mode, and use the Capture checkbox to choose which frames are recorded.
  • Exit play mode, and the recording is saved to the output directory.

To record in a built game (Windows or Linux, with the Mono scripting backend), use manual mode from your own script :

  • Attach the script to a gameobject with Automatic Mode unchecked.
  • Call Initialize with the output directory and any other settings you need.
  • Set up a new capture pipeline, choosing whether it records video, audio or both, and whether it starts capturing right away.
  • Set Capture to true or false to choose which frames are recorded.
  • Call Save to write the recording to the output directory. To record again, go back to Initialize.

Unify Runtime Recorder is a recording tool that will make your life easier and your games more awesome. It is not on the Unity Asset Store or itch.io right now. If you would like to use it, contact us.

If you like this article,

Share