Skip to content

Class

PlacementSettings

Generated GDScript class reference for GridPlacement.PlacementSettings.

Status
Current
Version
v6.3.0
Source updated
2026-10-29
Generated on
2026-10-29

6.3. These pages document the 6.3 release, where placeable is now entry (what changed) and PlacementOwner is deprecated (migration). Still on 6.2? Your version's guides ship inside the plugin itself, under addons/grid_placement/guides/; the 6.2 URLs on this site now redirect to this series.

Settings for placing objects and painting terrain: the preview, drag placement, and terrain brush limits.

Source: addons/grid_placement/systems/building/placement_settings.gd

Syntax

class PlacementSettings extends PlacementResource

Members

NameKindSummary
DRAG_PREVIEW_REFRESH_INTERVAL_TICKSFieldBulk previews revalidate external physics/rule changes periodically.
preview_kept_script_typesPropertyClass names of scripts kept on the placement preview. Every other script is removed from the preview so it does not run game logic.
add_entry_instancePropertyAdds a SceneEntryInstance to every placed object, recording which entry it came from so it can be rebuilt when a level loads.

Note: it stores the entry's file path. If you move or rename entry files, saved objects lose the link; look entries up by PlacementEntry.id instead if your files move often.
preview_instance_z_indexPropertyZ index of the placement preview. Keep it above indicator_z_index so the preview draws over the tile indicators.
indicator_z_indexPropertyZ index of the tile indicators. Keep it below preview_instance_z_index so they draw under the preview.
default_cell_anchor_modePropertyWhere on the targeted 2D cell objects are placed, for entries set to INHERIT. See ScenePlacementEntry.CellAnchorMode.
resolve_cell_anchorMethod
drag_ghost_stylePropertyHow a line or rectangle drag of objects is previewed. A tile-shaped marker on each cell where an object will be placed. Only the outline of the line or rectangle being dragged. A see-through copy of the object on each cell. How a line or rectangle drag of objects is previewed. See DragGhostStyle.
drag_marker_texturePropertyOptional marker texture for PER_OBJECT_MARKERS, stretched to one tile. Leave empty to draw the map's tile shape.
base_tile_paint_rulesPropertyRules checked whenever any terrain is painted.
terrain_paint_requires_existing_cellPropertyWhen on, terrain can only be painted over cells that already have a tile. When off (default), painting empty space adds new cells.
max_terrain_brush_cellsPropertyMost cells one terrain brush stroke (line, rectangle, or flood fill) can paint. Keeps large drags from stalling the game. Cannot be set above BrushShapeGenerator.MAX_BRUSH_CELLS.
max_object_drag_placementsPropertyMost tiles one object drag can fill. The number of objects placed is this divided by the object's size in tiles (at least 1), so dragging large objects stays responsive. The preview shows only what will be placed.
preview_root_scriptPropertyScript added to the root of the placement preview after its other scripts are removed. Does not replace a script that was kept.