[RELEASED] [Open Source] GIF capturing library for Unity

Hi all,

We’ve built an open-source GIF-recording project: GitHub - getsocial-im/getsocial-capture: The project goal is to let Unity developers record GIFs of gameplay of their game for easy sharing between friends.. It lets you easily record a game session and get a GIF as a result. Later you can save, share, use as a marketing material the GIF that you’ve got.

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

Setup Steps

  • Copy Assets/GetSocialCapture folder to your project
  • Add GetSocialCapture script to any of your Game components. By default GetSocialCapture records Main Camera’s rendered content. If you want to change this, set a different Camera instance to Captured Camera variable.
  • If you want to show a preview of the recorded content add GetSocialCapturePreview Prefab to any of your screens.
  • You’re all set, let’s record something.

Recording
We support 2 recording modes:

  • Continuous, when script records camera’s content at a rate configured in captureFrameRate property and keeps the last n frames, specified by maxCapturedFrames property.
  • Manual, when script records camera’s content at the time when CaptureFrame() method is called. This mode is useful e.g. in puzzle games or for making time-lapse videos.

Example
Just check out the example project inside the repo. It shows how recording script and playback prefab are used.

We hope, this may be useful for mobile game developers who want to increase engagement of their users through user-generated content.

Feedback is very appreciated!
Thanks!
Ostap and the team at GetSocial

Does it work on Android build? which release should i use for Unity 2021.2.14f.1 i use newest one and it work on editor but crash on my phone.