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

Shape Editor

Interactive 3D shape viewer and editor - supports detail level inspection, render flag toggling, node hierarchy viewing, material highlighting, LOD generation, sequence animation, and Collada/Wavefron

Interactive 3D shape viewer and editor - supports detail level inspection, render flag toggling, node hierarchy viewing, material highlighting, LOD generation, sequence animation, and Collada/Wavefront export.


Public API

FunctionSignatureDescription
M.onEditorGui()Main GUI - shape preview with tabbed panels
M.onEditorInitialized()Registers Shape Editor window and menu item
M.showShapeEditorLoadFile(filename)Loads a shape file into the editor for viewing
M.onEditorInspectorHeaderGui(inspectorInfo)Adds "Open in Shape Editor" button to TSStatic inspector
M.onEditorObjectSelectionChanged()Auto-loads selected TSStatic if preference enabled
M.onEditorRegisterPreferences(prefsRegistry)Registers shapeEditor.general.autoOpenSelectedObject
M.onEditorExitLevel()Clears the loaded shape
M.onEditorDeactivated()Restores materials and cleans up temp objects
M.onSerialize / M.onDeserialized() / (data)Persistence of loaded mesh file

Editor Tabs

TabFeatures
DetailsForce detail level, export to Collada/Wavefront, shape stats (polys, materials, draw calls, bones, collision meshes)
RenderToggle Ghost, Nodes, Bounds, ObjBox, ColMeshes, Wireframe rendering
NodesHierarchical tree view of shape node structure
SequenceAnimation sequence selector and playback (internal builds)
MaterialMaterial list with click-to-edit and hover-to-highlight
LOD WIPGenerate mesh LODs with decimation (amount, sloppy mode, error target)

Shape Stats Displayed

StatDescription
DetNameCurrent detail level name
SizeDetail size value
PolysPolygon count
PixelPixel size
MaterialsMaterial count
DrawCallsDraw call count
Bones / WeightsSkeletal info
ColMeshes / ColPolysCollision mesh stats

Usage Example

-- Load a shape programmatically:
editor_shapeEditor.showShapeEditorLoadFile("/levels/GridMap/art/shapes/buildings/busstop_grid.dae")

-- Or select a TSStatic in the scene tree and click "Open in Shape Editor" in the inspector.

Notes

  • Uses ShapePreview C++ object for offscreen rendering
  • Material highlighting creates a temporary clone material with a highlight texture
  • LOD generation writes .cs constructor files for engine-level mesh decimation
  • Auto-open on selection controlled by shapeEditor.general.autoOpenSelectedObject preference

See Also

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

Sensor Debugger

Camera sensor debug window - lists all active camera sensors and provides preview toggle for visualizing their color, annotation, and depth outputs.

Shortcut Legend

Displays a context-sensitive keyboard/mouse shortcut legend bar at the bottom of the editor, showing all available shortcuts for the current edit mode.

On this page

Public APIEditor TabsShape Stats DisplayedUsage ExampleNotesSee Also