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
파일 보기 프로젝트 열기: decentraland/unity-renderer 1 사용 예제들

공개 메소드들

메소드 설명
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,