Dynamic Decals - Debug Section
Debug panel for the dynamic decals tool. Provides developer-facing buttons to test internal API calls, dump state, reproject layers, toggle projection, bake brushes, generate dynamic texture materials
Debug panel for the dynamic decals tool. Provides developer-facing buttons to test internal API calls, dump state, reproject layers, toggle projection, bake brushes, generate dynamic texture materials, and more.
Public API
| Function | Signature | Description |
|---|---|---|
M.registerEditorPreferences | (prefsRegistry) | Registers preferences (stub) |
M.editorPreferenceValueChanged | (path, value) | Preference change callback (stub) |
M.setup | (tool_in) | Registers "Debug" section (order 1010) |
Debug Actions Available
| Button / Widget | Action |
|---|---|
| Reproject Layers checkbox | Reprojects every frame when checked |
| Reproject Layers button | One-shot api.reprojectLayers() |
| set true / set false | api.setProjectDynamicDecalsState(bool) |
| Bake Brush | api.bakeBrush() |
| Dump api.layerStack | dump(api.getLayerStack()) |
| Reload textures | textures.reloadTextureFiles() |
| getShapeMaterialNames | Dumps material names |
| getMeshObjectCount | Dumps mesh count |
| api.getShapeMeshes() | Dumps shape meshes |
| dump selection | Dumps editor.selection["dynamicDecalLayer"] |
| dump gizmo.transform | Dumps gizmo matrix and position |
| notification.add | Adds test notification |
| Open/Close 'Load/Save' | Toggles section visibility |
| Docs - Select section | Opens docs to "Linked Set Layers" |
| Highlight widget | Highlights "rotation" widget for 3 seconds |
| api.updateVehicleMaterials() | Force updates vehicle materials |
| Dump usedMaterialNames | Dumps settings material names |
| Generate Materials | Scans all vehicles, creates dynamic texture materials JSON |
Display Info
api.getDepth()- current depth valueapi.getSurfaceNormal()- current surface normaltool.getCurrentMaskEditingLayerUid()- active mask editing layer
Dependencies
| Module | Purpose |
|---|---|
editor_api_dynamicDecals | All debug API calls |
editor_dynamicDecals_textures | Texture reload |
editor_dynamicDecals_gizmo | Gizmo state inspection |
editor_dynamicDecals_notification | Test notifications |
editor_dynamicDecals_docs | Docs navigation test |
editor_dynamicDecals_widgets | Widget highlighting test |
editor_dynamicDecals_settings | Material name queries |
See Also
- Dynamic Decals - Browser - Related reference
- Dynamic Decals - Brushes - Related reference
- Dynamic Decals - Camera - Related reference
- World Editor Guide - Guide
Dynamic Decals - Color Presets
Predefined color palette for the dynamic decals tool. Ships with 42 named automotive colors (Iconic Orange, Jet Black, Pearl White, etc.). Users can add, rename, recolor, and delete presets. Colors ca
Dynamic Decals - Debug Textures
Debug texture viewer for the dynamic decals tool. Displays collapsible sections for all internal texture buffers: combined, dynamic, baked, highlight, decal input (brush), and mask textures.