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

不打扰是莪最后的温柔 提交于 2019-12-10 14:35:41

问题


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.


回答1:


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:



来源:https://stackoverflow.com/questions/44865782/how-to-record-the-screen-in-unity-and-make-output-as-a-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!