The InteractiveMovieClipBehaviour implements user input functionality for Mouse/Keyboard and Touch devices. Mouse clicks are converted from camera space to stage space when the user interacts with the movieclip. see MovieClipBehaviour for base functionality.
| |
Behaviour update. | |
|
Set to allow mouse or keyboard interaction. | |
Set mouse over interactions. | |
Enable multiple touch events otherwise the first touch down event will only be used. | |
Set keyboard input enabled | |
Camera to use for mouse input, defaults to Camera.main or any other camera. |
| |
Frame update handler, renders the scene and handles user input etc. | |
Set a pixel perfect scale to render display objects on an orthographic camera. | |
Gets default draw scale | |
Set the MovieClip URI. | |
Renders one frame of the active movieclip and advances the timeline. | |
Behaviour state event. | |
Behaviour update. | |
Update event, called once per frame. | |
Internal destroy handler. | |
Destroy event. | |
Set the next state. | |
Set the next state with delay. | |
Schedule the next Update() or StateName() update for n seconds from now. | |
Get the active state name. | |
Compare state name to the active one. | |
Get the active state run time in seconds. | |
Get the active state run time in milliseconds. | |
Remove component by name. | |
Add component by name |
Default global draw scale to initialise the drawScale . | |
Set the swf asset name eg. | |
Set the exported symbol name to load from the swf asset file. | |
Set the current frame to the specified label ( editor only update ). | |
Set the current frame to the specified frame ( editor only update ). | |
Set the orientation to always look at the main camera. | |
Billboard mode camera to use, defaults to Camera.main. | |
Loop timeline. | |
Flip the Y coordinates, usefull for handling coordinate between flash and uniSWF. | |
Draw scale sets the stage scale. | |
Enable live editor preview. | |
Set the blendmode. | |
Target framerate to render the MovieClip timeline. | |
Stage color transform. | |
Static object will render on Awake then remove on the first Update. | |
Active MovieClip player instance. | |
Active Stage instance. | |
Active mesh generator. | |
Get or set the current frame on the active MovieClip's timeline. | |
Get or set the depth spacing of each DisplayObject. | |
Get or set the depth spacing of each DisplayObjectContainer. | |
Associate user data with this behaviour. |