< Zurück | Inhalt | Weiter >

When do Behaviors run?

A Behavior’s processStimulus methods will be called if all the following conditions are met:


The Behavior has been added to the scenegraph.

The Behavior’s scheduling Bounds intersect the ViewPlatform’s activation region.

The Behavior is enabled.

The Behavior’s WakeUpCondition is true. The WakeUpCondition is set in the

initialize method and must be reset after each call to processStimulus.

View.isBehaviorSchedulerRunning() returns true.