MovieClipBehaviour


Description

The MovieClipBehaviour allows fully animated MovieClips to be displayed in the scene as 3D objects.



Functions

Awake

Initialises the movieClip property and mesh renderer.

loadMovieClip

Load movie clip with a swf linkage uri eg. some.swf:ExportName, replaces existing.

Update

Frame update handler, renders the scene and handles user input etc.

calcOthoScale

Set a pixel perfect scale to render display objects on an orthographic camera.

getDefaultDrawScale

Gets default draw scale

setUri

Set the MovieClip URI.

renderFrame

Renders one frame of the active movieclip and advances the timeline.

generateMesh

Generate mesh from stage display lists.

setFps

Set framerate ( use this instead of fps property )

setDrawMeshMode

Alternative rendering mode for Unity 4.2 rendering issues.


Variables

defaultDrawScale

Default global draw scale to initialise the drawScale .

defaultUseAccurateTiming

Enabled depreciated non-time drift frame timing.

swf

Set the swf asset name eg.

symbolName

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

gotoAndStopLabel

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

gotoAndStopFrame

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

billboard

Set the orientation to always look at the main camera.

billboardCamera

Billboard mode camera to use, defaults to Camera.main.

loop

Loop timeline.

flipY

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

drawScale

Draw scale sets the stage scale.

editorPreview

Enable live editor preview.

blendMode

Set the blendmode.

fps

Target framerate to render the MovieClip timeline.

colorTransform

Stage color transform.

staticRemoveOnStart

Static object will render on Awake then remove on the first Update.

useFastRenderer

Faster renderer, some features may be disabled if enabled.

useSmoothTime

Use Time.smoothDelta for frame timings, valid if useSmoothTime is used.

useAccurateTiming

Use Time.smoothDelta for frame timings, valid if useSmoothTime is used.

renderOnAwake

Render frame on awake.

enableMeshRenderer

Enable/disable mesh rendering to the scene.

doubleBufferMesh

Enable/disable frame update.

movieClip

Active MovieClip player instance.

stage

Active Stage instance.

gfxGenerator

Active mesh generator.

drawMeshMode

[Highly experimental] use drawMesh instead of MeshRenderer.

currentFrame

Get or set the current frame on the active MovieClip's timeline.

zDrawDisplayObjectSpace

Get or set the depth spacing of each DisplayObject.

zDrawDisplayObjectContainerSpace

Get or set the depth spacing of each DisplayObjectContainer.

renderMesh

Indicates current renderMesh, this is valid after renderFrame is called.