RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Editor AI TestsEditor AI VisualizationEditor – Assembly Spline ToolAsset BrowserAsset DeduplicatorAsset Management ToolSFX Previewer (Audio Events List)Audio Ribbon EditorAutoSaveBarriers EditorBiome ToolBuilding EditorBulk RenameCamera BookmarksCamera TransformCamera Path EditorCEF HelperCo-Simulation Signal EditorCrawl Data EditorCreate Object ToolDataBlock EditorDecal EditorDecal Spline EditorDocumentation HelperDrag Race EditorDrift Data EditorDrive Path EditorDynamic Decals Tool (Vehicle Livery Creator)Engine Audio DebugExtensions DebugExtensions EditorFFI Pointer Leak TestFile DialogFlowgraph EditorForest EditorForest ViewEditor Gizmo HelperEditor Ground Model Debug HelperEditor Headless Editor TestEditor Icon OverviewEditor ImGui C DemoEditor InspectorEditor Layout ManagerEditor Level SettingsEditor Level ValidatorEditor LoggerEditor Log HelperEditor MainEditor Main MenuEditor Main ToolbarEditor Main UpdateMap Sensor EditorMaster Spline EditorMaterial EditorMeasures Inspector HeaderMesh Editor (Base)Mesh Road EditorMesh Spline EditorMission EditorMission PlaybookMission Start Position EditorMulti Spawn Manager (Vehicle Groups)Navigation Mesh EditorEditor News MessageObject Tool (Object Select Edit Mode)Object To Spline EditorParticle EditorPerformance Profiler / Camera RecorderPhysics ReloaderPrefab Instance EditorEditor PreferencesRace / Path EditorRally EditorRaycast Test Editor ToolRenderer Components Editor ToolRender Test Editor ToolResource Checker Editor ToolRiver EditorRoad Architect EditorRoad DecorationsRoad Editor (Decal Road)Road Network ExporterRoad River Cache HandlerRoad River GUIRoad Spline EditorRoad Template EditorRoad UtilitiesScene TreeScene ViewScreenshot Creator BootstrapScript AI EditorScript AI ManagerSensor Configuration EditorSensor DebuggerShape EditorShortcut LegendSidewalk Spline EditorSites EditorSlot Traffic EditorSuspension Audio DebugTech Server ManagerTerraform ToolTerrain And Road ImporterTerrain EditorTerrain Materials EditorText EditorTool ManagerTool ShortcutsTraffic DebugTraffic ManagerTraffic Signals EditorUndo History ViewerVehicle Bridge TestVehicle Detail ViewerVehicle Editor MainEditor - VisualizationEditor Viz HelperEditor Water Object HelperEditor Windows Manager

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferenceGE Extensionseditor

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

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 directly - consumed by meshRoadEditor and riverEditor.


Public API (Exposed via M)

FunctionSignatureDescription
M.onUpdate_()Per-frame update: rendering, input handling, gizmo
M.onToolbar_()Toolbar UI with default width/depth sliders
M.onActivate_()Activates the edit mode for the current mesh type
M.onEditorInspectorHeaderGui_(info)Inspector header customization
M.onEditorRegisterPreferences_(reg)Registers width/depth/height preferences
M.onEditorPreferenceValueChanged_(path, val)Handles preference changes
M.onEditorInspectorFieldChanged_(ids, field, val, idx)Triggers mesh regeneration
M.onEditorAxisGizmoAligmentChanged_()Updates gizmo position on alignment change
M.onEditorObjectSelectionChanged_()Updates selected mesh reference
M.copySettingsAM()Copies current mesh fields
M.pasteFieldsAM()Pastes copied fields with undo
M.onDeleteSelection()Deletes selected node(s) or mesh
M.onSelectAll()Selects all nodes in current mesh

Node Operations (with Undo)

FunctionDescription
setAllNodesWidthActionSets all node widths to a value
setAllNodesDepthActionSets all node depths to a value
setAllNodesNormalActionResets all normals to up vector
deleteNodeDeletes a single node
insertNodeInserts a node between two existing nodes

Configuration

PreferenceDefaultDescription
defaultWidth10Default width for new nodes
defaultDepth5Default depth for new nodes
defaultHeight2Height offset for placement
dragWidthfalseEnable drag-to-set-width on creation

Usage Example

-- This is a base module; use via meshRoadEditor or riverEditor
local meshEditor = dofile("/lua/ge/extensions/editor/meshEditor.lua")
meshEditor.type = "MeshRoad"
meshEditor.preferencesName = "meshRoadEditor"

Dependencies

  • editor_roadRiverGui - Shared road/river rendering
  • ui_imgui

See Also

  • Editor AI Tests - Related reference
  • Editor AI Visualization - Related reference
  • Editor – Assembly Spline Tool - Related reference
  • World Editor Guide - Guide

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.

Mesh Road Editor

Editor extension for creating and editing MeshRoad objects. Thin wrapper around the shared `meshEditor` base module, configured for MeshRoad-specific behavior.

On this page

Public API (Exposed via M)Node Operations (with Undo)ConfigurationUsage ExampleDependenciesSee Also