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
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 can be applied as decal or fill layer colors via buttons or drag-and-drop.
Public API
| Function | Signature | Description |
|---|---|---|
M.onGui | (guiId) | Draws color presets section: filter, color widgets, name inputs, action buttons |
M.registerEditorPreferences | (prefsRegistry) | Registers presets table with 42 default colors |
M.editorPreferenceValueChanged | (path, value) | Preference change callback (stub) |
M.setup | (tool_in) | Registers "Color Presets" section (order 121) and docs entry |
UI Features
Each preset shows:
- Color picker widget (editable, with alpha preview)
- Name input field (editable, saved on deactivation)
- Delete button
- Set as decal color button →
api.setDecalColor() - Set as fill color button →
api.setFillLayerColor() - Text filter to search by name
- "Add color preset" button at bottom
Default Presets (Selection)
| Name | RGBA |
|---|---|
| Iconic Orange | [1.0, 0.4, 0.0, 1.0] |
| Jet Black | [0, 0, 0, 1.0] |
| Pearl White | [0.83, 0.83, 0.83, 1.0] |
| Fire Red | [0.8, 0.1, 0.1, 1.0] |
| Toxic Green | [0, 0.73, 0.23, 1.0] |
| Navy Blue | [0, 0.07, 0.23, 1.0] |
| ...and 36 more | - |
Dependencies
| Module | Purpose |
|---|---|
editor_api_dynamicDecals | setDecalColor(), setFillLayerColor() |
editor_dynamicDecals_docs | Documentation registration |
See Also
- Dynamic Decals - Browser - Related reference
- Dynamic Decals - Brushes - Related reference
- Dynamic Decals - Camera - Related reference
- World Editor Guide - Guide
Dynamic Decals - Color History
Tracks colors used in the dynamic decals tool. When a decal or fill layer is placed, its color is added to the history (most recent first, duplicates removed). Colors can be reapplied as decal or fill
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