Chris' Tutorials
Docs/Grid Placement

Class

TerrainPalette

Generated GDScript class reference for GridPlacement.TerrainPalette.

StatusDraft
Versionv6.0
UpdatedDevelopment docs generated from GDScript source

This is unreleased documentation in active development. APIs, class names, and behavior may change before the final release.

Draft — Unreleased:This page is in active development. APIs, class names, and behavior may change before the release is finalized. Use it as a preview of what's coming — not as a stable integration target.

Filters which terrains from a TileSet are exposed for painting. A lean whitelist: holds TilePlacementEntry resources that combine terrain names and optional icon into a single data structure. The TileSet remains the single source of truth for terrain IDs, colors, peering, and existence. Names are resolved against a TileMapLayer's TileSet at paint-time. Usage: var palette := TerrainPalette.new() palette.display_name = "Dungeon Pack" palette.entries = [ TilePlacementEntry.new(terrain_name="dungeon_floor", icon=preload("res://art/icon.png")), TilePlacementEntry.new(terrain_name="stone_wall") ]

Source: addons/grid_placement/placement/terrain/terrain_palette.gd

Syntax

class TerrainPalette extends Resource

Members

NameKindSummary
display_namePropertyDisplay name shown in the palette selector (e.g. "Dungeon Pack").
iconPropertyOptional icon for the palette folder in a multi-palette UI.
placement_rulesPropertyList of rules to validate for all terrains in this palette.
ignore_base_rulesPropertyIf true, base rules from PlacementSettings are ignored for this palette.
entriesPropertyTerrain entries to expose for painting. Each entry carries both a terrain name and optional icon. Each name must match [method TileSet.get_terrain_name] on the target TileSet.
get_editor_issuesMethod
issuesProperty
get_entriesMethod
resultProperty

Source

addons/grid_placement/placement/terrain/terrain_palette.gd

Plugin docs root:gdscript/plugins/grid_placement_dev/docs