API 参考 / ScriptBehavior
Interface: ScriptBehavior
Defined in: packages/natsume/src/runtime/runtime.ts:108
Extends
Properties
onAnimationEvent?
optionalonAnimationEvent?:AnimationEventHandler
Defined in: packages/natsume/src/runtime/runtime.ts:118
Receives source messages from the Animator on this node; return true when handled.
Methods
beforeUpdate()?
optionalbeforeUpdate(deltaSeconds):void
Defined in: packages/natsume/src/runtime/runtime.ts:91
Before animation and simulation; receives the requested frame delta.
Parameters
deltaSeconds
number
Returns
void
Inherited from
destroy()?
optionaldestroy():void
Defined in: packages/natsume/src/runtime/runtime.ts:96
Returns
void
Inherited from
lateUpdate()?
optionallateUpdate(deltaSeconds):void
Defined in: packages/natsume/src/runtime/runtime.ts:95
After update and field notifications, before rendering; receives the requested frame delta.
Parameters
deltaSeconds
number
Returns
void
Inherited from
onAnimatedField()?
optionalonAnimatedField(name,value):void
Defined in: packages/natsume/src/runtime/runtime.ts:110
Receives the final changed field value after an effect operation, before drawing.
Parameters
name
string
value
Returns
void
onControlTime()?
optionalonControlTime(seconds):void
Defined in: packages/natsume/src/runtime/runtime.ts:113
Parameters
seconds
number
Returns
void
onControlTimeStart()?
optionalonControlTimeStart():void
Defined in: packages/natsume/src/runtime/runtime.ts:112
Timeline ITimeControl lifecycle; callbacks receive clip-local seconds.
Returns
void
onControlTimeStop()?
optionalonControlTimeStop():void
Defined in: packages/natsume/src/runtime/runtime.ts:114
Returns
void
onDisable()?
optionalonDisable():void
Defined in: packages/natsume/src/runtime/runtime.ts:89
Returns
void
Inherited from
onEnable()?
optionalonEnable():void
Defined in: packages/natsume/src/runtime/runtime.ts:88
Returns
void
Inherited from
onParticleSystemStopped()?
optionalonParticleSystemStopped(event):void
Defined in: packages/natsume/src/runtime/runtime.ts:116
Receives StopAction.Callback from a particle system on this node.
Parameters
event
Returns
void
update()?
optionalupdate(deltaSeconds):void
Defined in: packages/natsume/src/runtime/runtime.ts:93
After simulation; receives the time actually advanced.
Parameters
deltaSeconds
number
Returns
void