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 Headless Editor Test

Demonstrates the headless editor mode API - a mode that hides standard editor chrome (menus, toolbars) and lets a tool provide its own UI. Includes a test tool window and custom toolbar.

Demonstrates the headless editor mode API - a mode that hides standard editor chrome (menus, toolbars) and lets a tool provide its own UI. Includes a test tool window and custom toolbar.


Module Overview

AspectDetail
Fileextensions/editor/headlessEditorTest.lua
ReturnsM table
ConditionOnly registers hooks if not shipping_build
Windowsheadless_editor_test, myCustomToolbar

Public Functions

FunctionSignatureDescription
M.onEditorGui()Renders the test tool window and toolbar when headless tool is active
M.onEditorInitialized()Registers windows and adds "Headless Editor Test" menu item under Debug
M.onEditorActivated()Called when editor activates (no-op)
M.onEditorHeadlessMainMenuBar()Draws custom menu bar in headless mode with "Exit Headless Mode" option
M.onEditorHeadlessChange(enabled, toolName)Hook called when headless mode toggles (no-op placeholder)

Headless Mode API Usage

-- Enter headless mode (hides default editor UI)
editor.enableHeadless(true, "myHeadlessTool")

-- Exit headless mode (restores default editor UI)
editor.enableHeadless(false, "myHeadlessTool")

-- Check if your tool is the active headless tool
if editor.isHeadlessToolActive("myHeadlessTool") then
  -- Draw your custom UI
end

Window Registration

editor.registerWindow("headless_editor_test", imgui.ImVec2(200, 200))
editor.registerWindow("myCustomToolbar", imgui.ImVec2(500, 200))
editor.addWindowMenuItem("Headless Editor Test", onWindowMenuItem, {groupMenuName="Debug"})

See Also

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

Editor Ground Model Debug Helper

Registers a menu item in the editor's Debug menu group that opens the Ground Model Debug window (provided by `util_groundModelDebug`).

Editor Icon Overview

Browsable grid of all available editor icons. Allows filtering by name and copying icon keys to clipboard. Can also regenerate the icon atlas.

On this page

Module OverviewPublic FunctionsHeadless Mode API UsageWindow RegistrationSee Also