Dynamic Decals Inspector
Editor module providing the Inspector panel for the Dynamic Decals tool. Displays and allows editing of all properties for selected layers and brushes. Supports multi-select with collapsible tree node
Editor module providing the Inspector panel for the Dynamic Decals tool. Displays and allows editing of all properties for selected layers and brushes. Supports multi-select with collapsible tree nodes per layer.
Module Info
| Key | Value |
|---|---|
| File | extensions/editor/dynamicDecals/inspector.lua |
| logTag | editor_dynamicDecals_inspector |
| Dependencies | editor_api_dynamicDecals, editor_dynamicDecals_brushes, editor_dynamicDecals_docs, editor_dynamicDecals_widgets, editor_dynamicDecals_helper |
Public API
| Function | Signature | Description |
|---|---|---|
M.registerLayerGui | (layerTypeId, guiFn) | Registers a custom GUI function for a specific layer type ID |
M.inspectorGuiLayer | (inspectorInfo) | Renders inspector GUI for all selected dynamicDecalLayer entries |
M.inspectorGuiBrush | (inspectorInfo) | Renders inspector GUI for the selected dynamicDecalBrush |
M.registerEditorPreferences | (prefsRegistry) | Registers dynamicDecalsTool.inspector.texturePreviewSize (float, default 128) |
M.editorPreferenceValueChanged | (path, value) | Stub for preference changes |
M.setup | (tool_in) | Initializes inspector; registers default fallback GUI for all layer types; registers docs section |
Preferences
| Path | Type | Default | Range | Description |
|---|---|---|---|---|
dynamicDecalsTool.inspector.texturePreviewSize | float | 128 | 32–512 | Max thumbnail width for decal textures |
Layer GUI Registration
Each layer type registers its own GUI function via registerLayerGui. During setup, all types get a default fallback that displays "No layerGui available for '<type>'". Layer-type modules (decal, fill, group, etc.) override this during their own setup().
Usage Example
-- Register a custom inspector GUI for decal layers
local inspector = extensions.editor_dynamicDecals_inspector
local api = extensions.editor_api_dynamicDecals
inspector.registerLayerGui(api.layerTypes.decal, function(layer, guiId)
im.TextUnformatted("Custom decal inspector for: " .. layer.name)
end)See Also
- Dynamic Decals - Browser - Related reference
- Dynamic Decals - Brushes - Related reference
- Dynamic Decals - Camera - Related reference
- World Editor Guide - Guide
Dynamic Decals History
Editor module providing undo/redo history GUI for the Dynamic Decals tool. Displays undo and redo stacks with selectable entries and bulk undo/redo support.
Dynamic Decals Layer Stack
Editor module providing the Layer Stack panel for the Dynamic Decals tool. Renders the full layer hierarchy with drag-and-drop reordering, visibility toggling, layer masks, duplication, mirroring, and