SpriteSheetMovieClipBehaviour


Description

The SpriteSheetMovieClipBehaviour caches MovieClip animations into a Mesh array for fast playback.

Ideally each frame should have a similar number of sprites and must only use one texture page.


Functions

Awake

Update

Frame update handler, advances sprite sheet frame.

getDefaultDrawScale

Gets default draw scale

setFps

Set framerate ( use this instead of fps property )

clearSpriteSheetCache

Clear sprite sheet cache.


Variables

defaultDrawScale

Default global draw scale to initialise the drawScale .

spriteSheetCache

Sprite sheet cache.

enableDepreciatedFrameTiming

Enabled depreciated non-time drift frame timing.

swf

Set the swf asset name.

symbolName

Set the exported symbol name to loaded from the swf asset file.

gotoAndStopFrame

Set the current frame to the specified label ( editor only update ).

fps

Target framerate to render the MovieClip timeline.

cache

Cache the compiled Mesh data to the spriteSheetCache.

shareCacheKey

Custom cache key to use.

generateDefault

Generate mesh on load.

playing

Set animation play state.

loop

Set animation to loop.

spriteSheet

Active spriteSheet instance.

drawScale

Draw scale sets the stage scale.

offsetPosition

flipY

Flip the Y coordinates, usefull for handling coordinate between flash and uniSWF.

useSmoothTime

Use Time.smoothDelta for frame timings.