Skip to content

Class

PlacementLevelContext

Generated GDScript class reference for GridPlacement.PlacementLevelContext.

Status
Draft
Version
v6.0
Updated
Development docs generated from GDScript source

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

Organizes object requirements for building onto a game level for PlacementCompositeContainers

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 to use as the tile selection target for the grid targeting_state
mapsPropertyAll maps in the game level.[br][br] Optional for single-layer levels: when left empty, [member target_map] is used as the only known map. List every gameplay-relevant TileMapLayer here once the level paints feature terrains onto their own layers. Sets this data on the targeting_state.maps during gameplay
objects_parentPropertyWhere objects should be placed into the scene under in the scene hierarchy
resolve_placement_dependenciesMethod
apply_toMethod
get_editor_issuesMethod
get_runtime_issuesMethod