My Project
|
Public Member Functions | |
override void | Play (RenderTexture[] gifFrames, int fps, bool isCustomRatio, int customWidth, int customHeight, bool optimizeMemoryUsage) |
Setup to play the stored textures from gif recorder. | |
override void | Clear () |
void | ChangeDestination (RawImage rawImage) |
void | AddExtraDestination (RawImage rawImage) |
void | RemoveFromExtraDestination (RawImage rawImage) |
![]() | |
void | SetState (PlayerState state) |
virtual void | Play (RenderTexture[] gifFrames, int fps, bool isCustomRatio, int customWidth, int customHeight, bool optimizeMemoryUsage) |
Setup to play the stored textures from gif recorder. | |
void | Pause () |
void | Resume () |
void | Stop () |
void | _OnFirstFrameReady (GifTexture gifTex) |
void | SetOnFirstFrameCallback (Action< FirstGifFrame > onFirstFrame) |
void | SetLoadingCallback (Action< float > onLoading) |
void | SetOnPlayingCallback (Action< GifTexture > onPlayingCallback) |
bool | ByteArrayToFile (string fileName, byte[] byteArray) |
virtual void | Clear () |
Public Attributes | |
RawImage | destinationRawImage |
![]() | |
List< GifTexture > | gifTextures = new List<GifTexture>() |
DisplayType | displayType = DisplayType.None |
float | nextFrameTime = 0.0f |
int | spriteIndex = 0 |
bool | optimizeMemoryUsage = true |
Set to 'true' to take advantage of the highly optimized ProGif playback solution for significantly save the memory usage. | |
Action< FirstGifFrame > | OnFirstFrame = null |
Action< float > | OnLoading = null |
Action< GifTexture > | OnPlayingCallback = null |
Protected Member Functions | |
override void | _OnFrameReady (GifTexture gTex, bool isFirstFrame) |
This is called on every gif frame decode finish. | |
![]() | |
abstract void | _OnFrameReady (GifTexture gTex, bool isFirstFrame) |
This is called on every gif frame decode finish. | |
void | _ClearGifTextures (List< GifTexture > gifTexList) |
Clear the sprite & texture2D in the list of GifTexture. | |
Additional Inherited Members | |
![]() | |
enum | DisplayType { None = 0 , Image , Renderer , GuiTexture , RawImage } |
enum | PlayerState { None , Loading , Ready , Playing , Pause } |
This component state. | |
![]() | |
bool | ignoreTimeScale [get, set] |
float | interval [get] |
Get the current frame waiting time. | |
float | playbackSpeed [get, set] |
Get/Set the playback speed of the GIF. (Default is 1.0f) | |
float | LoadingProgress [get] |
Gets the progress when load Gif from path/url. | |
bool | IsLoadingComplete [get] |
PlayerState | State [get] |
Current state. | |
int | loopCount [get] |
Animation loop count (0 is infinite) | |
int | width [get] |
Texture width (px) | |
int | height [get] |
Texture height (px) | |
|
inlineprotectedvirtual |
This is called on every gif frame decode finish.
gTex | GifTexture. |
Implements ProGifPlayerComponent.
|
inlinevirtual |
Reimplemented from ProGifPlayerComponent.
|
inlinevirtual |
Setup to play the stored textures from gif recorder.
Reimplemented from ProGifPlayerComponent.