BehaviorInstance

Ashley's avatar
Medal
Construct Team Founder
Published 16 May, 2018
92 words
<1 min

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.