SDKBehaviorBase interface

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

The SDKBehaviorBase interface is used as the base class for your behavior in the runtime. It is the behavior equivalent of SDKPluginBase.

SDKBehaviorBase cannot be directly constructed; it should only be used as a base class.

Properties

this._runtime

Reference to the associated Runtime that controls execution of the project.

Methods

GetRuntime()

Returns this._runtime publicly.

OnCreate()

Optional override called by the runtime when the behavior is created. This is done early on in the loading process.

GetObjectClasses()

Return a read-only array of ObjectClass that use this kind of behavior. The order is undefined.

GetInstances()

Return a read-only array of Instance that use this kind of behavior. The order is undefined.