The terrain palette: a grid of terrains players can pick to paint with. Shows the terrains in terrain_palette, or the bundle's default palette (GridPlacementBundle.terrain_palette) when that is empty.
Source: addons/grid_placement/ui/terrain/terrain_palette_ui.gd
Syntax
class TerrainPaletteUI extends PlacementControlMembers
| Name | Kind | Summary |
|---|---|---|
terrain_selected | Signal | Emitted when a picked terrain is accepted and painting can start. |
valid_changed | Signal | Emitted after the palette is rebuilt: true when it shows terrains, false when it could not. |
terrain_palette | Property | Terrains to show. When empty, the bundle's default palette is used. |
terrain_entry_template | Property | Scene for each terrain. Its root must be a TerrainPaletteEntryView. |
fixed_template_height | Property | Height of each entry, in pixels. 0 lets entries size to their content. |
hide_ui_on_selection | Property | Hides the palette after a terrain is picked. |
ui_root | Property | Root control shown and hidden as a whole. |
grid_container | Property | Grid the terrain entries are added to. |
resolve_placement_dependencies | Method | |
resolve_placement_runtime | Method | |
rebuild | Method | |
clear | Method | |
get_runtime_issues | Method | |
mesh_library_item_swatch_color | Method |