set_state_theme_color
Create or update a StateTree editor theme color by display name, preserving the ColorRef UUID for existing entries so state references stay valid.
Instructions
Upsert a theme color in UStateTreeEditorData::Colors. CRITICAL: if a color with the same DisplayName (case-insensitive) already exists, its ColorRef UUID is preserved — state-level ColorRef references keep resolving, and the editor retains the original color identity in the asset's change history. Newly-created colors get a fresh UUID; the caller is responsible for re-binding any state ColorRefs that referenced an orphaned previous UUID. r/g/b default to 1.0; a defaults to 1.0. The engine stores Colors as a TSet keyed on ColorRef (display name uniqueness is the caller's responsibility — duplicate names are allowed by the engine but produce ambiguous lookups downstream).
Returns: { state_tree_path, color_name, color_ref, r, g, b, a, was_new, saved }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | alpha 0..1 (default 1.0) | |
| b | No | blue 0..1 (default 1.0) | |
| g | No | green 0..1 (default 1.0) | |
| r | No | red 0..1 (default 1.0) | |
| color_name | Yes | Display name (required, case-insensitive lookup) | |
| state_tree_path | Yes | Asset path of the UStateTree |