Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to record the screen in Unity and make output as a file [closed]

Is there any method, such as coding or using a free asset to make screen recording function in my game.

I'm working on Unity and my project needs to provide a replay when I am playing my game and make the output of that replay as a file.

Thanks in advance.

like image 503
Bose Sanamchai Avatar asked Jul 01 '17 22:07

Bose Sanamchai


People also ask

Does Unity recorder record audio?

Limitation: The Recorder currently supports only the recording of samples from the Unity built-in audio engine. As such, it cannot record audio from third-party audio engines such as FMOD Studio or Wwise, for example.

How do I stop Playmode from recording in Unity?

To stop recording: In the Recorder window, click the Record button or the START RECORDING button. Use the F10/fn+F10 shortcut. Close the Recorder window. Exit Play mode.

How do you record a screen and draw?

To draw while you're recording, open Screencast-O-Matic's Screen Recorder. To the right of the 'Record' button, you'll find a pen icon. You can enter Draw and Zoom mode by clicking on the icon, or if you're recording full-screen, use the hotkey Shift-Alt-D for Windows or Shift-Option-D for Mac.


1 Answers

You can check out our open-source project: https://github.com/getsocial-im/getsocial-capture. C# examples are in the readme.

You can record in 2 modes:

  1. Continuous mode - capture last X frames.
  2. Manual mode - capture frames on your own when needed. For example, record a timelapse of the level.

Here's the recording of a game session from the test app. The recorded GIF preview shows up in the end:

GetSocial GIF Capture library

like image 183
Ostap Andrusiv Avatar answered Nov 14 '22 22:11

Ostap Andrusiv