Skip to content

Class

PlacementLevelContext

Generated GDScript class reference for GridPlacement.PlacementLevelContext.

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.

Tells Grid Placement which maps and parent node a level uses. Add one to each level scene and assign the tile map to target and the node that placed objects go under. A level uses exactly one surface: target_map for a 2D TileMapLayer level or target_map_3d for a 3D GridMap level.

Source: addons/grid_placement/components/placement_level_context.gd

Syntax

class PlacementLevelContext extends PlacementSystemsComponent

Members

NameKindSummary
PLACED_PARENT_GROUPFieldStable scene-tree group marking the configured parent that owns placed objects. Collision validation uses this scope to distinguish placed-object bodies from unrelated world actors and TileMapLayer collision bodies.
target_mapPropertyThe TileMapLayer the cursor targets and objects are placed on.
mapsPropertyEvery TileMapLayer in the level that placement should know about.

Optional for single-layer levels: when empty, target_map is the only map. Add each layer once you paint terrain features (fences, walls) onto their own layers.
target_map_3dPropertyThe GridMap the cursor targets and objects are placed on. Assign exactly one surface: target_map for 2D levels or this for 3D levels, matching GridPlacementSettings.dimensions.
objects_parentPropertyThe node placed objects are added under. A Node2D for a 2D level, a Node3D for a 3D level.
resolve_placement_dependenciesMethod
is_3dMethod
apply_toMethod
get_editor_issuesMethod
get_runtime_issuesMethod