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
Afficher le fichier Open project: decentraland/unity-renderer Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
JSProcessorLoad ( string url, Action, OnSuccess, Action, OnFail ) : IEnumerator,
UniGifProcessorLoad ( string url, Action, OnSuccess, Action, OnFail ) : IEnumerator,

Method Details

DisposeGif() public méthode

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
Résultat void

GifProcessor() public méthode

public GifProcessor ( string url ) : System.Collections
url string
Résultat System.Collections

Load() public méthode

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
Résultat IEnumerator,