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 Inspector

Object property inspector for the world editor. Displays and edits fields of selected scene objects, supports multiple simultaneous selections, locked inspector instances, custom type handlers, and sp

Object property inspector for the world editor. Displays and edits fields of selected scene objects, supports multiple simultaneous selections, locked inspector instances, custom type handlers, and specialized editors (Ground Cover UV, transform groups).


Module Overview

AspectDetail
Fileextensions/editor/inspector.lua
ReturnsM table
Requireseditor/api/guiInstancer, editor/api/valueInspector, editor/api/objectHistoryActions
Windowinspector (prefix for multiple instances)

Public Functions (via M / editor)

FunctionDescription
M.onEditorGuiRenders all inspector window instances each frame
M.onEditorRegisterApiRegisters inspector API functions on the editor object
M.onEditorAfterOpenLevelRefreshes inspector state after loading a level
M.onExtensionLoadedExtension load hook
M.onEditorInitializedRegisters inspector windows, preferences, type handlers
M.onEditorActivatedInitializes inspector state on editor activation
M.onEditorDeactivatedCleans up inspector state on editor deactivation
M.onEditorLoadGuiInstancerStateRestores GUI instancer state
M.onEditorSaveGuiInstancerStateSaves GUI instancer state
M.onEditorObjectSelectionChangedRefreshes inspector when selection changes

Key Features

FeatureDescription
Multi-object editingShows shared fields across multiple selected objects; highlights differing values in orange
Locked inspectorsPin an inspector to specific objects (yellow header indicator)
Custom type handlersRegister per-class inspection UI via editor.registerInspectorTypeHandler(type, guiFn)
Field modifiersRegister field override UI via editor.registerInspectorFieldModifier(class, field, guiFn)
Group collapsingField groups can be collapsed/expanded, state persisted
Ground Cover UV EditorVisual drag-handle UV editor for GroundCover objects
Transform header menuQuick-access menu for position, rotation, scale operations

Inspector Type Handlers

-- Register custom inspector for a selection type
editor.registerInspectorTypeHandler("level_settings", function(inspectorInstance)
  imgui.Text("Level Settings")
end)

-- Unregister
editor.unregisterInspectorTypeHandler("level_settings")

Inspector Field Modifiers

-- Override rendering of a specific field on a class
editor.registerInspectorFieldModifier("TerrainBlock", "heightMap", function(objectIds, fieldInfo)
  -- Custom UI for heightMap field
end)

Internal State

VariableDescription
inspectorWindowNamePrefix"inspector" - base name for inspector windows
maxGroupCount500 - maximum field groups per inspector
lockedInspectorColorYellow (1, 0.8, 0, 1) - header tint for locked inspectors
differentValuesColorRed-orange (1, 0.2, 0, 1) - indicates different values across multi-selection
collapseGroupsPersisted collapse state for field groups

Functions

onEditorRegisterApi()

Callback for editor register api event.

onEditorAfterOpenLevel()

Callback for editor after open level event.

Returns: self

onExtensionLoaded()

Callback for extension loaded event.

onEditorDeactivated()

Callback for editor deactivated event.

onEditorLoadGuiInstancerState(state)

Callback for editor load gui instancer state event.

  • state (any)

onEditorSaveGuiInstancerState(state)

Callback for editor save gui instancer state event.

  • state (any)

See Also

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

Editor ImGui C Demo

Wraps the built-in ImGui Demo Window as an editor debug tool, accessible via the editor's Debug menu.

Editor Layout Manager

Manages saving, loading, and deleting of editor window layout presets. Handles both named layout snapshots and the current working layout. Wraps ImGui INI persistence and editor window state JSON file

On this page

Module OverviewPublic Functions (via M / editor)Key FeaturesInspector Type HandlersInspector Field ModifiersInternal StateFunctionsonEditorRegisterApi()onEditorAfterOpenLevel()onExtensionLoaded()onEditorDeactivated()onEditorLoadGuiInstancerState(state)onEditorSaveGuiInstancerState(state)See Also