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

Dynamic Decals Tool (Vehicle Livery Creator)

Editor extension providing the Vehicle Livery Creator - a comprehensive tool for painting decals, brush strokes, paths, and fills onto vehicle surfaces in real-time.

Editor extension providing the Vehicle Livery Creator - a comprehensive tool for painting decals, brush strokes, paths, and fills onto vehicle surfaces in real-time.


Overview

editor_dynamicDecalsTool is the main orchestrator for the dynamic decals system. It registers an editor edit mode, manages tool sections (collapsible UI panels), toolbar items, and coordinates dozens of sub-modules (textures, brushes, layers, gizmo, camera, etc.). The tool supports decal, brush stroke, and path placement modes.


Module Fields

FieldTypeDescription
M.versiontableSemantic version {1,1,0}
M.dependenciestableList of ~35 sub-extension dependencies
M.toolModestableEnum: none=0, decal=1, brushStroke=2, path=3
M.toolModenumberCurrently active tool mode
M.doApiUpdateboolWhether to call api.onUpdate_() each frame
M.directoryPathstringBase asset path "/art/dynamicDecals/"

Public Functions

FunctionDescription
M.registerSection(name, guiFn, order, defaultOpen, window, buttons)Register a collapsible UI section in the tool window
M.setSectionOpenState(name, newState, setScroll)Open/close a section by name, optionally scroll to it
M.getSectionOpenState(name)Returns whether a section is currently open
M.getSectionWindowName(section)Returns the formatted window name for a section
M.registerToolbarToolItem(name, guiFn, order)Add a tool button to the toolbar
M.registerToolbarActionItem(name, guiFn, order)Add an action button to the toolbar
M.registerEditorOnUpdateFn(name, onUpdateFn)Register a per-frame update callback
M.unregisterEditorOnUpdateFn(name)Remove a per-frame update callback
M.registerOnEditorGuiFn(name, guiFn)Register an additional GUI draw function
M.unregisterOnEditorGuiFn(name)Remove an additional GUI draw function
M.applyDecal(value)Apply decal/brush/path based on current tool mode (value=1 press, 0 release)
M.changeDecalSize(increase, mod)Adjust decal scale by preference step
M.changeDecalRotation(clockwise, mod)Adjust decal rotation by preference step
M.undo() / M.redo()Undo/redo layer operations
M.lockDepth(value)Lock/unlock depth buffer
M.lockSurfaceNormal(value)Lock/unlock surface normal
M.enableBrushStroke(value)Enable/disable brush stroke recording
M.enablePathLayer(value)Enable/disable path layer mode
M.finishPathLayer()Finalize the current path layer
M.setCurrentMaskEditingLayerUid(uid)Set the layer UID for mask editing
M.getCurrentMaskEditingLayerUid()Get the current mask editing layer UID
M.removeLastPathLayerPoint()Remove the last point from the current path layer
M.getIconSize()Returns the icon size number
M.getIconSizeVec2()Returns the icon size as ImVec2
M.getMainScrollY()Returns the main window scroll Y position
M.dynamicDecals_onLayerUpdated(layerUid)Hook called when a dynamic decal layer is updated
M.dynamicDecals_moveLayer(from, fromParentUid, to, toParentUid)Hook called when a layer is moved in the stack

Editor Hooks

HookPurpose
M.onEditorInitializedSets up API, windows, edit mode, dependencies, sections
M.onEditorGuiDraws main tool window and all section windows
M.onEditorToolWindowShowActivates edit mode, sets dynamic textures skin
M.onEditorToolWindowHideReturns to object select mode, hides sub-windows
M.onEditorRegisterPreferencesRegisters dynamicDecalsTool.general.* preferences
M.onEditorPreferenceValueChangedPropagates preference changes to sub-modules
M.onVehicleSwitchedUpdates materials via settings module
M.onEditorActivatedRe-initializes on editor activation
M.onEditorDeactivatedCleanup on editor deactivation
M.onEditorSaveStateSaves tool state
M.onEditorLoadStateRestores tool state
M.onSerializeSerializes decal tool state for persistence
M.onDeserializedRestores decal tool state from serialized data

Usage Example

-- Register a custom section in the decals tool
extensions.editor_dynamicDecalsTool.registerSection(
  "My Section",
  function(id) imgui.Text("Custom content") end,
  50,    -- order
  true,  -- default open
  { size = imgui.ImVec2(300, 200) } -- external window
)

-- Change tool mode
local M = extensions.editor_dynamicDecalsTool
M.toolMode = M.toolModes.brushStroke

See Also

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

Drive Path Editor

Main editor tool for creating and managing AI drive path splines. Supports **Free Mode** (arbitrary nodes on terrain) and **NavGraph Mode** (waypoint-to-waypoint paths on the navigation graph). Featur

Engine Audio Debug

Editor window for real-time tweaking of engine sound parameters including gain, EQ, muffling, and frequency settings with live preview and clipboard export.

On this page

OverviewModule FieldsPublic FunctionsEditor HooksUsage ExampleSee Also