IBehaviorInstance interface

The IBehaviorInstance interface represents a behavior instance in Construct.

Methods

GetProject()
Return the IProject representing the behavior instance's associated project.
GetObjectInstance()
Returns an IObjectInstance or IWorldInstance (depending on the type of object) of the object instance associated with this behavior instance.
GetPropertyValue(id)
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.
GetExternalSdkInstance()
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