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
Dynamic Decals - BrowserDynamic Decals - BrushesDynamic Decals - CameraDynamic Decals - Color HistoryDynamic Decals - Color PresetsDynamic Decals - Debug SectionDynamic Decals - Debug TexturesDynamic Decals - Documentation SystemDynamic Decals - ExportDynamic Decals - FontsDynamic Decals - GizmoDynamic Decals - HelperDynamic Decals HistoryDynamic Decals InspectorDynamic Decals Layer StackDynamic Decals Load/SaveDynamic Decals MeshesDynamic Decals NewsDynamic Decals NotificationDynamic Decals SelectionDynamic Decals SettingsDynamic Decals TexturesDynamic Decals Vehicle Color PaletteDynamic Decals Widgets
Dynamic Decals Inspector Utils

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 ExtensionseditordynamicDecalsinspector

Dynamic Decals Inspector Utils

Utility functions for the Dynamic Decals inspector. Provides reusable ImGui widgets for editing decal texture paths and gradient colors within layer inspectors.

Utility functions for the Dynamic Decals inspector. Provides reusable ImGui widgets for editing decal texture paths and gradient colors within layer inspectors.


Module Info

KeyValue
Fileextensions/editor/dynamicDecals/inspector/utils.lua
logTageditor_dynamicDecals_inspector_utils
Dependencieseditor_api_dynamicDecals

Public API

FunctionSignatureDescription
M.decalTextureWidgetInspect(layer, property, guiId, removeTextureOverridePath)Renders a texture path input with folder picker, delete button, image preview, and drag-drop target
M.decalColorGradientWidgetInspect(k, layer, guiId)Renders a 4-corner gradient color editor with visual preview rectangle
M.onGui()Empty stub (no standalone GUI)
M.registerEditorPreferences(prefsRegistry)Stub
M.editorPreferenceValueChanged(path, value)Stub
M.setup(tool_in)Stores tool and API references

Texture Widget Features

  • Read-only text input showing current texture path
  • Folder icon button opens a file dialog (PNG, JPG filters)
  • Delete icon button resets path to "/" or a custom override path
  • Image preview respecting dynamicDecalsTool.inspector.texturePreviewSize
  • Accepts DynDecalTextureDrapDrop drag-drop payloads

Gradient Widget Features

  • Four color pickers at corners (top-left, top-right, bottom-left, bottom-right)
  • Multi-color filled rectangle drawn via ImDrawList_AddRectFilledMultiColor
  • Changes auto-commit to layer via api.setLayer(layer, true)

Usage Example

local inspectorUtils = extensions.editor_dynamicDecals_inspector_utils

-- In a layer inspector GUI function:
inspectorUtils.decalTextureWidgetInspect(layer, "decalColorTexturePath", guiId)
inspectorUtils.decalColorGradientWidgetInspect(k, layer, guiId)

Module Variables

  • dependencies (table) - Module variable.

Additional Exports

  • M.dependencies

See Also

  • World Editor Guide - Guide

Dynamic Decals Widgets

Editor module providing the unified property widget rendering system for the Dynamic Decals tool. Maps API property types to appropriate ImGui controls (sliders, inputs, combos, color pickers, texture

Dynamic Decals Layer Type: Brush Stroke

Editor module for the Brush Stroke layer type in the Dynamic Decals tool. Provides inspector GUI and section GUI for configuring brush stroke properties such as interpolation, color, scale, rotation,

On this page

Module InfoPublic APITexture Widget FeaturesGradient Widget FeaturesUsage ExampleModule VariablesAdditional ExportsSee Also