Measures Inspector Header
Lightweight editor extension that displays the bounding box size of the current selection in the inspector header. Shows width × depth × height for single or multi-object selections.
Lightweight editor extension that displays the bounding box size of the current selection in the inspector header. Shows width × depth × height for single or multi-object selections.
Public API
| Function | Signature | Description |
|---|---|---|
M.onEditorInitialized | () | Enables the extension |
M.onExtensionLoaded | () | No-op placeholder |
M.onEditorInspectorHeaderGui | (inspectorInfo) | Draws size text in the inspector header |
Behavior
- Single object: Computes
getObjBox()scaled bygetScale(), displays XYZ extents - Multi-selection: Uses
editor.objectSelectionBBoxextents - Format:
Size: X.XX x Y.XX x Z.XXwith tooltip "The size of the selection bounding box, scale included"
Usage Example
-- Automatically active when editor is initialized
-- No manual activation needed - hooks into inspector header
-- Shows: "Size: 4.50 x 2.10 x 1.80" for selected objectsDependencies
ui_imguiscenetree(for object lookup)editor.objectSelectionBBox(for multi-selection)
See Also
- Editor AI Tests - Related reference
- Editor AI Visualization - Related reference
- Editor – Assembly Spline Tool - Related reference
- World Editor Guide - Guide
Material Editor
Full-featured material editor for inspecting and modifying Torque3D `Material` objects. Supports PBR workflows, texture issue scanning, cubemap editing, material preview, layer management, copy/paste,
Mesh Editor (Base)
Shared base module for MeshRoad and River editors. Provides node selection, gizmo-based manipulation, width/depth editing, copy/paste of mesh fields, and undo/redo for all node operations. Not used di