C# Class GifProcessor, unity-renderer

GifProcessor: Is in charge of choosing which gif processor tu use (typescript's webworker through GIFProcessingBridge or Unity's plugin UniGif) for downloading, processing and discarding gifs
Mostrar archivo Open project: decentraland/unity-renderer Class Usage Examples

Public Methods

Method Description
DisposeGif ( ) : void

Notify processor that the gif is disposed. If using UniGif plugin we just cancel the download if pending If using webworker we send a message to kernel to cancel download and/or remove created texture from memory

GifProcessor ( string url ) : System.Collections
Load ( Action, OnSuccess, Action, OnFail ) : IEnumerator,

Request the download and processing of a gif

Private Methods

Method Description
JSProcessorLoad ( string url, Action, OnSuccess, Action, OnFail ) : IEnumerator,
UniGifProcessorLoad ( string url, Action, OnSuccess, Action, OnFail ) : IEnumerator,

Method Details

DisposeGif() public method

Notify processor that the gif is disposed. If using UniGif plugin we just cancel the download if pending If using webworker we send a message to kernel to cancel download and/or remove created texture from memory
public DisposeGif ( ) : void
return void

GifProcessor() public method

public GifProcessor ( string url ) : System.Collections
url string
return System.Collections

Load() public method

Request the download and processing of a gif
public Load ( Action, OnSuccess, Action, OnFail ) : IEnumerator,
OnSuccess Action, success callback with gif's frames arry
OnFail Action, fail callback
return IEnumerator,