Updated version of the original repository by Chman
Moments is a quick GIF replay recorder for Unity. It automatically records the last few seconds of gameplay and lets you save to a GIF file on demand.
The demo requires use of the Universal or High Definition Render Pipelines.
-
Tested with Unity 6000.0.42.
-
Tested with Multiple Cameras, Texture Renderers, Postprocessing, Renderer Features.
-
Fixed: Now works with other RenderTexture writer Cameras active in the background.
-
Updated: FPS limit from 60 to 50 for more accurate results.
-
Updated: Inverted quantize quality field for readability.
-
Implemented: Chman#10 Frames Per Color Sample algorithm.
-
Implemented: Chman#12 Delta time optimization.
-
Implemented: Preprocessor Yield count to relax the main thread operations.
-
Why still use GIF? It's free to use and the encoder script is lightweight, able to be compiled into multiple platforms. Though the output files can be huge and uncompressed, those can be further converted with other external tools. Including more 3rd party converters with this package would make it too unwieldy.
Drop the Moments Recorder folder in your project and add the Recorder script to your camera (or select your camera and use Component -> Miscellaneous -> Moments Recorder).
The included demo should get you started. For more advanced features, browse the Moments.Recorder source code, it's heavily commented.
Here's a preview of the output quality.
Pull requests are welcomed !
Zlib (see License.txt)