Skip to content
ct

Class

PlaceableInstance

Generated GDScript class reference for GridPlacement.PlaceableInstance.

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.

Component to attach to objects that are placed by the building system by remembering the placeable resource that they were instanced from

Source: addons/grid_placement/components/placeable_instance.gd

Syntax

class PlaceableInstance extends PlacementGameNode

Members

NameKindSummary
placeable_path_changedSignal
placeable_pathPropertyPath to the placeable resource that creates or recreates instances of this gameplay object type
default_nameField
group_nameField
placeableProperty
placement_instance_idPropertyStable, persisted instance identifier for this placed object. Generated once at first commit; survives save/load, move, rotate, flip, demolish preparation, and scene reparenting. Uses a UUID-style random ID. Never derived from Object.get_instance_id(), node path, transform, or session identity. Empty until [method ensure_placement_instance_id] is called.
ensure_placement_instance_idMethod
is_valid_placement_instance_idMethod
saved_mount_dataPropertyOpaque, dimension-neutral restore metadata carried through a save/load round trip. The shared component preserves this dictionary exactly as the demo's save path merged it in; the internal 3D persistence layer reconstructs a typed mount from it and dispatches via the 3D mount service. Empty for legacy saves and for purely 2D placements — the 3D subscriber falls back to deterministic cell reconstruction from the transform. Kept as a plain [Dictionary] so this shipped component does not depend on any 3D type.
saved_game_dataPropertyGame-owned save fields carried through a restore/re-save cycle. Plugin-owned fields are written after this dictionary and therefore always win conflicts.
resolve_placement_dependenciesMethod
validate_setupMethod
saveMethod
instance_from_saveMethod
INSTANCE_NAMEFieldShared name constants Be very careful about changing these because game saves do not know if you change the string key of loaded properties.
PLACEABLEField
TRANSFORMField
MOUNTFieldAuthoritative placement-registration record (mount type, cell, edge/face keys) merged in by the demo's save path.
PLACEMENT_INSTANCE_IDFieldStable persisted instance identifier.
WORLD_RECORDFieldComplete dimension/mode/mount/transform authority record.