IBehaviorInstance interface

The IBehaviorInstance interface represents a behavior instance in Construct.


Return the IProject representing the behavior instance's associated project.
Returns an IObjectInstance or IWorldInstance (depending on the type of object) of the object instance associated with this behavior instance.
Get the value of a behavior property for this behavior instance by its property ID.
SetPropertyValue(id, value)
Set the value of a behavior property for this instance by its property ID.
Return the custom behavior-specific SDK editor instance class for this behavior instance, which will be a derivative of IBehaviorInstanceBase. For example if called for a behavior instance of the addon SDK's sample behavior, this would return the MyCustomBehaviorInstance class. This method can only be used for installed addons - it will return null for any built-in behaviors.
Addon SDK Manual 2024-02-15

On this page