BehaviorInstance

Addon SDK v1 retirement

The BehaviorInstance class represents an instance of a behavior in the runtime. When a behavior is added to an object class, the runtime creates a BehaviorInstance for every instance of the object class that is created. The BehaviorInstance can then control its associated instance.

Methods

GetSdkInstance()
Return the behavior-specific behavior instance class, which derives from SDKBehaviorInstanceBase.
GetObjectInstance()
Return the Instance associated with this behavior instance.
GetBehaviorType()
Return the BehaviorType this behavior belongs to.
GetBehavior()
Return the behavior-specific class that derives from SDKBehaviorBase.
GetRuntime()
Return the Runtime for this behavior instance.
Addon SDK Manual 2024-05-20