IBehavior script interface

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.
Construct 3 Manual 2022-07-20

On this page