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
Construct.net
2017-11-14
2024-02-15
You are here:
Search this manual:
This manual entry was last updated on 15 Feb, 2024 at 15:34