TextEditorEditorInstance

TextEditor instance class in editor.

Constructor

new TextEditorEditorInstance(sdkType, inst)

Create editor instance.
Parameters:
NameTypeDescription
sdkTypeobjectReference to the associated SDK type class.
instobjectReference 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.

Extends

  • external:IInstanceBase

Members

_webglText

Properties
NameTypeDescription
_webglTextObject.<external:IWebGLText>Text display object.

Methods

Release()

Called when release the plugin and method free the memory before destruction.

OnCreate()

Called when create plugin in editor.

OnPlacedInLayout()

Called when create plugin placed on layout editor.

Draw(iRenderer, iDrawParams)

Called when Construct wants the instance to draw itself in the Layout View.
Parameters:
NameTypeDescription
iRendererObject.<external:IWebGLRenderer>The renderer interface used for issuing draw commands.
iDrawParamsObject.<external:IDrawParams>Providing additional information to the draw call.

_UpdateWebGLText(iRenderer, ILayoutView)

Update the visible text.
Parameters:
NameTypeDescription
iRendererObject.<external:IWebGLRenderer>The renderer interface used for issuing draw commands.
ILayoutViewObject.<external:ILayoutView>Providing additional information about layout