Table of Contents

Method Setup

Namespace
Moments
Assembly
GrindFest.dll

Setup(bool, int, int, int, float, int, int)

Initializes the component. Use this if you need to change the recorder settings in a script. This will flush the previously saved frames as settings can't be changed while recording.

public void Setup(bool autoAspect, int width, int height, int fps, float bufferSize, int repeat, int quality)

Parameters

autoAspect bool

Automatically compute height from the current aspect ratio

width int

Width in pixels

height int

Height in pixels

fps int

Recording FPS

bufferSize float

Maximum amount of seconds to record to memory

repeat int

-1: no repeat, 0: infinite, >0: repeat count

quality int

Quality of color quantization (conversion of images to the maximum 256 colors allowed by the GIF specification). Lower values (minimum = 1) produce better colors, but slow processing significantly. Higher values will speed up the quantization pass at the cost of lower image quality (maximum = 100).