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

Editor Main Menu

Manages the editor's main menu bar, notification system, window menu organization, layout management UI, and scene metrics display. Depends on `editor_layoutManager` for layout persistence.

Manages the editor's main menu bar, notification system, window menu organization, layout management UI, and scene metrics display. Depends on editor_layoutManager for layout persistence.


Module Overview

AspectDetail
Fileextensions/editor/mainMenu.lua
ReturnsM table
Dependencieseditor_layoutManager
RoleMain menu bar rendering and notification queue

Public Functions

FunctionDescription
M.onEditorGuiMainMenuRenders the main menu bar, notifications, and modal dialogs
M.onExtensionLoadedExtension load hook
M.onEditorActivatedSets up menu state on editor activation
M.onEditorInitializedInitializes menu structures and notification system
M.onEditorPreferenceValueChangedResponds to preference value changes

Notification System

FunctionSignatureDescription
showNotification(text, icon, group, duration, doBeep)Queues a notification with optional icon, group override, duration, and audio beep
editor.showNotification("Rebuilt Static Collision Data")
editor.showNotification("Saved!", editor.icons.save, "save", 3, true)
ParameterDefaultDescription
textrequiredNotification message
iconeditor.icons.infoIcon from editor icon atlas
group""Group name - same-group notifications override each other
duration4 secondsDisplay duration
doBeepfalsePlay audio beep

Menu Organization

FeatureDescription
Window menu itemsRegistered via editor.addWindowMenuItem(name, callback, options)
Menu groupsItems grouped under submenus (e.g., Debug, Tools)
Window searchSearchable window list with fuzzy matching
Layout managementSave/Load/Delete layout presets via popup dialogs

Collision Rebuild

-- Rebuilds static collision data when flagged
editor.rebuildCollision()  -- or force: rebuildCollision(true)
-- Sets editor.needsCollisionRebuild = false after rebuild
-- Shows notification: "Rebuilt Static Collision Data"

Key Internal State

VariableDescription
notificationShowTime4 seconds - default notification display time
notificationFadeTime1 second - fade-out duration
forceShowNewesttrue - newest notification overrides current
windowMenuItemsRegistered menu items for the Window menu
windowMenuGroupsGrouped menu item submenus
metricsScene performance metrics (object counts, draw calls)

Module Variables

  • dependencies (table) - {"editor_layoutManager"}

Functions

onEditorGuiMainMenu()

Callback for editor gui main menu event.

onExtensionLoaded()

Callback for extension loaded event.

onEditorPreferenceValueChanged(path, value)

Callback for editor preference value changed event.

  • path (string)
  • value (any)

Returns: self

Additional Exports

  • M.dependencies

See Also

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

Editor Main

Core editor bootstrap module. Sets up the global `editor` object, manages extension loading, preferences, edit modes, window registration, selection system, history/undo, and the editor activate/deact

Editor Main Toolbar

Renders the editor's main toolbar with edit mode buttons, transform snapping controls (grid/rotation/scale), camera speed slider, time-of-day slider, terrain snap settings, and configurable edit mode

On this page

Module OverviewPublic FunctionsNotification SystemMenu OrganizationCollision RebuildKey Internal StateModule VariablesFunctionsonEditorGuiMainMenu()onExtensionLoaded()onEditorPreferenceValueChanged(path, value)Additional ExportsSee Also