qc.Action

Description

qc.Action is abstract of Action Clip file. It is responsible for controlling Action Clip.

Variables

Variable Name Type Description
game qc.Game Game instance
targetObject qc.Node Action's target object who play this action.
targetLocked boolean Whether targetObject is locked.
samples int Frame amount per second.
duration int The duration of single loop.
speed int The speed of action.
loop boolean Whether action is loop.

Event

Event Name Description
onFinished When action finished, this event is triggered.
onLoopFinished When a single loop is finished, this event is triggered.

Methods

Method Description
setData Set data for specific animated property of Action Clip .

Manual

Action