GifTextureProvider
GIF texture playback provider.
| Type | Name | Interface Description |
|---|---|---|
| Variables | duration: number | • Function: Gets the duration of the GIF asset. |
| Variables | fps: number | • Function: Gets the frames per second (fps) of the GIF asset. |
| Variables | loopCount: number | • Function: Gets the loop count of the GIF asset. |
| Functions | getCurrentPlayingFrame(): number | • Function: Gets the current playing frame index of the GIF asset. Returns The current playing frame index of the GIF asset. |
| Functions | getFrameCount(): number | • Function: Gets the frame count of the GIF asset. Returns The frame count of the GIF asset. |
| Functions | pause(): void | • Function: Pauses the GIF asset. |
| Functions | playFromStart(): void | • Function: Plays the GIF asset from the start. |
| Functions | resume(): void | • Function: Resumes the GIF asset. |
| Functions | seek(frameIndex: number): void | • Function: Seeks to the specified frame index. Parameters • |
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use GifTextureProvider here
}
onUpdate(deltaTime: number) {
}
}