PreviewBuilder
AUTO-GENERATED FILE — DO NOT EDIT MANUALLY
Source: systems/building/builders/preview_builder.gd
Version: 5.1
class_name: PreviewBuilder
extends: RefCounted
Signals
(none)
Exports
(none)
Methods
_init()- Constructs a PreviewBuilder with explicit required dependencies.
Args:
- p_building_settings: configuration for preview placement
- p_logger: logger for diagnostics
get_runtime_issues()- Validates that all required dependencies are properly set. Returns: Array[String] - List of validation issues (empty if valid)
create_preview()- Spawns a new preview for the given placeable. Clears the previous one if active.
get_preview()- Get the object current previewed for placement
clear_preview()- Frees the active preview node.
align_to_grid()update_position()- Repositions the preview in world space. Returns true if the preview was successfully repositioned.
has_active_preview()- Optional: Check if a preview is currently being shown.