Construct 3 icon

Construct 3

Documentation

IBehavior script interface

Published 27 Apr, 2020
89 words
<1 min

The IBehavior interface represents a kind of behavior, such as Solid, Physics or Pin. Some behaviors derive from this class to add extra options that are global to the entire behavior, such as the physics world properties in the Physics behavior. This interface is usually accessed through the IBehaviorInstance behavior property.

IBehavior APIs

getAllInstances()

Return an array of all instances that have this kind of behavior, for example every object with the Solid behavior. Note the returned instances may come from a range of different object types.