Failed to find fun uniSWF - Api Reference -MovieClipBehaviour

MovieClipBehaviour


Description

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



Functions

Awake

OnUpdate

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.


Variables

defaultDrawScale

Default global draw scale to initialise the drawScale .

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.

movieClip

Active MovieClip player instance.

stage

Active Stage instance.

gfxGenerator

Active mesh generator.

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.


Inherited members

Functions

OnStart

Behaviour state event.

Update

Behaviour update.

OnUpdate

Update event, called once per frame.

OnDestroy

Internal destroy handler.

OnDestroyBehiavour

Destroy event.

SetState

Set the next state.

SetState

Set the next state with delay.

UpdateSleep

Schedule the next Update() or StateName() update for n seconds from now.

GetStateName

Get the active state name.

IsStateActive

Compare state name to the active one.

GetStateTime

Get the active state run time in seconds.

GetStateTimeMs

Get the active state run time in milliseconds.

RemoveComponent

Remove component by name.

AddComponent

Add component by name


Variables

userData

Associate user data with this behaviour.