API ReferenceGE Extensionseditor
Text Editor
Multi-instance text editor windows for editing object field values - spawns separate editor windows for each object/field combination with OK/Cancel workflow.
Multi-instance text editor windows for editing object field values - spawns separate editor windows for each object/field combination with OK/Cancel workflow.
Public API
| Function | Signature | Description |
|---|---|---|
M.onEditorInitialized | () | Registers editor.newTextEditorInstance function |
M.onEditorGui | () | Renders all active text editor instances |
M.onSerialize | () | Serializes open editor instances (minus text buffers) |
M.onDeserialize | (state) | Restores editor instances from serialized state |
Injected Editor API
| Function | Signature | Description |
|---|---|---|
editor.newTextEditorInstance | (objIds, fieldName) | Opens a new text editor window for the given object IDs and field name |
Notes
- Uses
guiInstancerpattern for multiple simultaneous windows - Text input buffer size: 16384 characters
- Automatically removes duplicate instances for the same object
- OK button commits changes via
objectHistoryActions.changeObjectFieldWithUndo - Cancel button closes without saving
See Also
- Editor AI Tests - Related reference
- Editor AI Visualization - Related reference
- Editor – Assembly Spline Tool - Related reference
- World Editor Guide - Guide
Terrain Materials Editor
Editor window for editing terrain material properties - texture maps, ground model assignment, and material layer configuration.
Tool Manager
Centralized module for cross-tool removal of TSStatic meshes placed by spline tools - cleans up mesh and assembly spline objects when the editor is activated.