C# Класс 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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
JSProcessorLoad ( string url, Action, OnSuccess, Action, OnFail ) : IEnumerator,
UniGifProcessorLoad ( string url, Action, OnSuccess, Action, OnFail ) : IEnumerator,

Описание методов

DisposeGif() публичный Метод

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
Результат void

GifProcessor() публичный Метод

public GifProcessor ( string url ) : System.Collections
url string
Результат System.Collections

Load() публичный Метод

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
Результат IEnumerator,