Mesh Road Editor
Editor extension for creating and editing MeshRoad objects. Thin wrapper around the shared `meshEditor` base module, configured for MeshRoad-specific behavior.
Editor extension for creating and editing MeshRoad objects. Thin wrapper around the shared meshEditor base module, configured for MeshRoad-specific behavior.
Public API
| Function | Signature | Description |
|---|---|---|
M.onEditorGui | () | Editor GUI callback (delegates to meshEditor) |
M.onEditorInitialized | () | Registers meshRoadEditMode with editor |
M.onExtensionLoaded | () | Logs initialization |
M.onEditorInspectorHeaderGui | (info) | Inspector header (delegates to meshEditor) |
M.onEditorRegisterPreferences | (reg) | Registers preferences (delegates) |
M.onEditorPreferenceValueChanged | (path, val) | Preference handler (delegates) |
M.onEditorInspectorFieldChanged | (ids, field, val, idx) | Field change handler (delegates) |
M.onEditorAxisGizmoAligmentChanged | () | Gizmo alignment handler (delegates) |
M.onEditorObjectSelectionChanged | () | Selection change handler (delegates) |
M.deleteNodeAM | () | Action map: delete selected node (delegates to meshEditor.deleteNodeAM - NOTE: nil in vanilla source, function not defined in meshEditor) |
M.selectAllNodes | () | Action map: select all nodes (delegates to meshEditor.selectAllNodes - NOTE: nil in vanilla source, function not defined in meshEditor) |
Edit Mode
editor.editModes.meshRoadEditMode = {
displayName = "Edit MeshRoad",
actionMap = "MeshRoadEditor",
icon = editor.icons.create_road_mesh,
-- Shortcuts:
-- Alt+LMB = Create mesh road / Add node
-- Ctrl+C = Copy mesh road properties
-- Ctrl+V = Paste mesh road properties
}Usage Example
-- Activate via editor toolbar: "Mesh Road Editor"
-- Alt+Click on terrain to create a new MeshRoad or add nodes
-- Select nodes to move with gizmo, adjust width/depth in inspectorDependencies
editor/meshEditor.lua(base module, loaded viadofile)
See Also
- Editor AI Tests - Related reference
- Editor AI Visualization - Related reference
- Editor – Assembly Spline Tool - Related reference
- World Editor Guide - Guide
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
Mesh Spline Editor
Editor tool for placing static meshes along splines. Supports multiple mesh components (main + 3 aliases), start/end caps, random/round-robin distribution, jitter, vertical offset, terrain conforming,