Usage
The singleton
The recorder runs as a singletonMonoBehaviour that survives scene loads (DontDestroyOnLoad).
Properties for binding UI: State, RecordingTime, FrameCount, EncodingProgress, LastOutputPath.
Events: OnRecordingStarted, OnRecordingStopped, OnEncodingProgress, OnEncodingComplete, OnEncodingFailed.
Encoding runs on a background thread after
StopRecording(). The .gif file exists once OnEncodingComplete fires; watch EncodingProgress for a progress bar.See also
- GIF Recording workflow for the editor-window equivalent.
- SequenceRecorder for frame-by-frame stills instead.