Chris' Tutorials
Docs/Grid Placement

Class

PreviewBuilder

Generated GDScript class reference for GridPlacement.PreviewBuilder.

StatusDraft
Versionv6.0
UpdatedDevelopment docs generated from GDScript source

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

Draft — Unreleased:This page is in active development. APIs, class names, and behavior may change before the release is finalized. Use it as a preview of what's coming — not as a stable integration target.

PreviewBuilder Purpose Manages the visual preview instance used during building placement. The class requires the core runtime objects up-front: PlacementSettings, the GridTargetingState, PlacementState, and a PlacementLogger. These are accepted in the constructor so the caller is explicit about required dependencies. In addition, resolve_placement_dependencies(container) exists to refresh or update dependencies from a PlacementContainer if the container changes during runtime (rare for tests but supported). The GridTargetingState is treated as the single source of truth for the positioner — the preview will always query the latest positioner when creating the preview.

Source: addons/grid_placement/systems/building/components/preview_builder.gd

Syntax

class PreviewBuilder extends PlacementInjectable

Members

NameKindSummary
from_containerMethod
p_building_settingsProperty
targeting_stateProperty
building_stateProperty
loggerProperty
builderProperty
resolve_placement_dependenciesMethod
get_runtime_issuesMethod
issuesProperty
initializeMethod
create_previewMethod
positionerProperty
get_previewMethod
clear_previewMethod
idxProperty
parentProperty
align_to_gridMethod
tile_sizeProperty
preview_offsetProperty
update_positionMethod
has_active_previewMethod

Source

addons/grid_placement/systems/building/components/preview_builder.gd

Plugin docs root:gdscript/plugins/grid_placement_dev/docs