API ReferenceGE Extensionseditor
Road Architect Editor
Full-featured road design tool for creating multi-lane roads with profiles, junctions, groups, and terraforming. Requires Tech license.
Full-featured road design tool for creating multi-lane roads with profiles, junctions, groups, and terraforming. Requires Tech license.
Overview
Massive editor extension (~8000+ lines) providing a complete road architecture system. Uses dedicated sub-modules for roads, profiles, groups, junctions, rendering, terraforming, static mesh management, and import/export. Supports serialization for undo/redo and session persistence.
Public API
| Function | Signature | Description |
|---|---|---|
M.onEditorGui | M.onEditorGui() | Renders the full road architect UI. |
M.onEditorInitialized | M.onEditorInitialized() | Registers edit mode, windows, scene tree menu, and loads terrain. |
M.onSerialize | M.onSerialize() | Serializes all roads, profiles, groups, junctions to temp JSON. |
M.onDeserialized | M.onDeserialized() | Restores from serialized data; rebuilds render data. |
Sub-Modules
| Module | Path | Purpose |
|---|---|---|
roadMgr | editor/tech/roadArchitect/roads | Road creation, editing, rendering |
profileMgr | editor/tech/roadArchitect/profiles | Lane profile management |
groupMgr | editor/tech/roadArchitect/groups | Prefab road group placement |
jctMgr | editor/tech/roadArchitect/junctions | Junction creation and management |
linkUtil | editor/tech/roadArchitect/link | Road-junction linking |
render | editor/tech/roadArchitect/render | Edit visualization rendering |
terra | editor/tech/roadArchitect/terraform | Terrain sculpting for roads |
staticMgr | editor/tech/roadArchitect/staticMeshMgr | Static mesh selection/audition |
import/export | (Tech license only) | Road network import/export |
Editor Modes
- Road placement: Click to add nodes, drag to position
- Group placement: Place prefab road groups with terrain conforming
- Junction placement: Auto-junction creation with configurable radius
- Profile editing: Multi-lane road cross-section design
- Guideline display: Road measurements and guidelines
Registered Windows
toolWin, materialSelect, meshSelect, nodeEdit, profilesList, profileEdit, groupsList, import
Usage
Accessible via the Road Architect edit mode in the editor toolbar. Requires Tech license verification.
See Also
- Editor AI Tests - Related reference
- Editor AI Visualization - Related reference
- Editor – Assembly Spline Tool - Related reference
- World Editor Guide - Guide