IObjectInstance interface

The IObjectInstance interface represents an instance in Construct.

Methods

GetProject()
Return the IProject representing the instance's associated project.
GetObjectType()
Return the associated IObjectType interface for this instance.
GetUID()
Return the UID (unique ID) the editor has assigned to this instance.
GetPropertyValue(id)
Get the value of a plugin property for this instance by its property ID. Color properties return a SDK.Color.
SetPropertyValue(id, value)
Set the value of a plugin property for this instance by its property ID. For color properties a SDK.Color must be passed as the value.
GetExternalSdkInstance()
Return the custom plugin-specific SDK editor instance class for this object instance, which will be a derivative of IInstanceBase. For example if called for an instance of the addon SDK's drawingPlugin sample, this would return the MyDrawingInstance class. This method can only be used for installed addons - it will return null for any built-in plugins.
Addon SDK Manual 2024-02-15

On this page