Table of Contents

Class TilePlacementEntry

Namespace
GridPlacement.GDScript
Assembly
MoonBark.GridPlacement.GDScript.dll

Placement entry for terrain/tile painting into a [TileMapLayer].\n\nAssociates a terrain name with optional placement rules and UI metadata. This is the canonical name replacing the internal-only [code]TilePlacementEntry[/code] (which was never released — no consumer migration needed).\n\nUsage: var entry := TilePlacementEntry.new() entry.terrain_name = "dungeon_floor" entry.icon = preload("res://art/icon.png")

class TilePlacementEntry extends PlacementEntry
TilePlacementEntry

Properties

terrain_name

Inherits [member PlacementEntry.placement_rules] typed as [Array][PlacementRule]. [TilePaintRule]s stored here are valid [PlacementRule]s; use [code]rule is TilePaintRule[/code] or [code]rule as TilePaintRule[/code] to access tile-specific methods. The terrain name that must match [method TileSet.get_terrain_name]. This is the single source of truth for terrain identification.

@export var terrain_name: StringName

Methods

get_display_name

func get_display_name() -> StringName:

Returns

is_valid

func is_valid() -> bool:

Returns

get_color_from_tileset

func get_color_from_tileset(p_tileset: TileSet) -> Color:

Parameters

p_tileset

Returns