Constructor
new TextEditorEditorInstance(sdkType, inst)
Create editor instance.
Parameters:
Name | Type | Description |
---|---|---|
sdkType | object | Reference to the associated SDK type class. |
inst | object | Reference to the IObjectInstance interface, or IWorldInstance interface for "world" type plugins, representing this instance in the editor. This allows access to Construct's built-in features for instances. |
- Source
Extends
- external:IInstanceBase
Members
_webglText
PropertiesName | Type | Description |
---|---|---|
_webglText | Object.<external:IWebGLText> | Text display object. |
- Source
Methods
Release()
Called when release the plugin and method free the memory before destruction.
- Source
OnCreate()
Called when create plugin in editor.
- Source
OnPlacedInLayout()
Called when create plugin placed on layout editor.
- Source
Draw(iRenderer, iDrawParams)
Called when Construct wants the instance to draw itself in the Layout View.
Parameters:
Name | Type | Description |
---|---|---|
iRenderer | Object.<external:IWebGLRenderer> | The renderer interface used for issuing draw commands. |
iDrawParams | Object.<external:IDrawParams> | Providing additional information to the draw call. |
- Source
_UpdateWebGLText(iRenderer, ILayoutView)
Update the visible text.
Parameters:
Name | Type | Description |
---|---|---|
iRenderer | Object.<external:IWebGLRenderer> | The renderer interface used for issuing draw commands. |
ILayoutView | Object.<external:ILayoutView> | Providing additional information about layout |
- Source