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

Decal Editor

Full-featured decal placement and editing tool. Manages DecalData templates and decal instances with multi-selection, gizmo manipulation (translate/rotate/scale), spatial grid acceleration, and debug

Full-featured decal placement and editing tool. Manages DecalData templates and decal instances with multi-selection, gizmo manipulation (translate/rotate/scale), spatial grid acceleration, and debug sphere visualization.


Public API

FunctionSignatureDescription
M.onEditorInitialized()Registers decalEditMode edit mode and tool window
M.onEditorGui()Renders Templates tab, Instances tab, and sphere alpha slider
M.onEditorBeforeSaveLevel()Auto-saves all decals before level save
M.onEditorInspectorFieldChanged(ids, field, value, idx)Marks changed DecalData as dirty, updates instances
M.onEditorInspectorHeaderGui(info)Shows material preview in inspector header
M.onEditorAxisGizmoAligmentChanged()Updates gizmo position on alignment change
M.onExtensionLoaded()Logs initialization

Edit Mode

PropertyValue
Display Name"Edit Decal"
Action Map"DecalEditor"
Iconeditor.icons.create_decal

Shortcuts

  • Ctrl + Click: Multi-select instances
  • Shift + Drag Gizmo: Duplicate selected decals

Key Features

Spatial Grid System

  • Accelerated instance lookup using a grid with 50m cell size
  • Auto-rebuilds when decal count changes or flagged dirty
  • Visible instances culled to 250m draw distance

Debug Spheres

  • Color-coded per instance ID, green for selected, yellow for hovered
  • Configurable alpha slider (0 = hidden)
  • Text labels within 50m: name, ID, distance

Template Management

  • Create / Delete / Save individual / Save all templates
  • Hidden templates: DummyDecal, tireTrackDecal
  • Material preview image in template and instance panels

Instance Management

  • Tree view grouped by template name
  • Position, rotation (Euler), and size editing
  • Multi-selection with average gizmo position
  • Duplicate via Shift+drag

Undo/Redo Actions

ActionDescription
CreateDecalTemplateCreate a new DecalData template
DeleteDecalTemplateDelete template and all its instances
CreateDecalInstancePlace a new decal instance
DeleteDecalInstanceRemove selected instances
DuplicateDecalInstancesDuplicate via shift-drag
PositionDecalInstancesMove instances
RotateDecalInstancesRotate instances (with position orbit)
ChangeDecalInstancesSizeScale instances
SelectSingleInst / AddDecalInstToSelection / RemoveDecalInstFromSelection / ClearDecalSelectionSelection changes

Notes

  • Gizmo alignment: Local (single selection uses instance matrix) vs World (average position)
  • Ray-sphere intersection for mouse picking instead of engine raycasts
  • Instance rotation stored as normal + tangent vectors, converted to/from Euler for UI
  • Template dirty state tracked via editor.isDecalDirty() / editor.saveDecal()

See Also

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

DataBlock Editor

Editor window for browsing, creating, deleting, and saving SimDataBlock objects. Provides a two-tab interface (Existing/New) with inspector integration.

Decal Spline Editor

Spline-based decal placement tool. Creates and manages decal splines that automatically populate decal instances along a path with configurable materials, spacing, jitter, rotation, and multi-componen

On this page

Public APIEdit ModeShortcutsKey FeaturesSpatial Grid SystemDebug SpheresTemplate ManagementInstance ManagementUndo/Redo ActionsNotesSee Also