5
\$\begingroup\$

How to do screen record in unity? I want to record my screen(gameplay) during my running game. That should be play/stop , replay , save that recording on locally from device, open/load from my device (which is already we recorded).

In my game one camera which can capture native camera, and one 3d model.

I wish to record that both and use my functionality whenever i want.

Thank you in advance.

\$\endgroup\$
  • \$\begingroup\$ There's a Unity-provided add-on called Everyplay in the Asset Store. Have you tried it yet? It would probably work for you. assetstore.unity3d.com/en/#!/content/16005 \$\endgroup\$ – Ben Wyatt Feb 2 '15 at 14:53
  • \$\begingroup\$ Are you referring to getting this working on just one workstation (ie, to make a trailer for your game)? Or, are you adding a recording system that will be usable by all your players? (ie, "Press V to start recording a video to share online!") \$\endgroup\$ – Katana314 Feb 2 '15 at 21:12
  • \$\begingroup\$ I would suggest Recorder (Essentials/Beta Content by Unity Technologies) in the asset store. It is free. I used it and the video recording of my particle system was very good. At the time of this posting Recorder does not record audio of your game - just video. Recorder at Unity asset store \$\endgroup\$ – Ghat Tagh Oct 17 '17 at 21:21
  • \$\begingroup\$ If you need not just to record the screen, but also edit this movies (Cut, Combine, Change Sound, Add Watermark etc.) You can take a look at FFmpeg Unity Bind \$\endgroup\$ – user3575956 Jan 25 '18 at 12:02
0
\$\begingroup\$

Screen (Gameplay) Recoding Asset for Unity ( FREE AND SUPER EASY TO IMPLEMENT)

I created a Unity Asset for screen recording which is free to use and easy to integrate with Unity. I am still working on it and hopefully add more features. This plugin will only work on Android(Lolipop or above) devices. I also posted a video tutorial on how to integrate it on your unity project

ASSET DOWNLOAD LINK: https://drive.google.com/open?id=1pIN5q30XOy4RXfUsb3J2rBBF4cqlc-ZR

Tutorial LINK: https://www.youtube.com/watch?v=j3zGzbe9V1o

NOTE: The core plugin was developed by Kim (https://github.com/thanh-nguyen-kim/Unity_Android_Screen_Recorder) which I used to create the .asset file.

Hope it helps.

\$\endgroup\$
  • 3
    \$\begingroup\$ I think this answer would vastly improve if instead of "just download X and import it in your project" it would explain what X does first behind the scenes. Maybe you can explain it's functionality, or what steps one has to take to do something similar. Also link-only answers are discouraged because the links might be deleted in the future, rendering this answer not useful at all for future readers. \$\endgroup\$ – TomTsagk Jul 27 '18 at 11:54
  • 1
    \$\begingroup\$ Thanks a lot for your valuable comment. I am definitely gonna change that today with more technical description rather than just the link. Sorry for my casualty and thanks for your comment. \$\endgroup\$ – Shuvro Sarkar Jul 27 '18 at 12:41
0
\$\begingroup\$

I would suggest you look into Brackey's Rewind Tutorial and improve upon that. One thing you could do is you can store all the positions in a JSON file or your own format when you/player hits stop button and read from that format when replaying, also he is rewinding and not replaying so you need to store the position in reverse order than him, or you can read in different order. He also addresses some limitations with this method like it'd be silly to store game play of more than a few seconds as it takes up a lot of memory to track every object, another thing he addresses is that not every device runs on same frame rate so replays will be different on different devices.

Also here's a wild thought, if your game is not fast-paced than you could record your object's position every x frames and maybe Lerp between those values when replaying? It won't be as accurate but it'll be performant than storing each positional change. By doing this you can probably get around the "different frame rate" limitation cause it'll be same on every device as it's "recreating frames", and with this you can also record more game play as it won't need as much memory.

Edit: Also if you only want to record game play footage in editor for trailer or some other stuff then you should check out Unity Recorder as @Ghat Tagh mentioned or use Cinemachine combined with OBS or other alternatives.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.