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.
Source: addons/grid_placement/utils/placement_camera2d_validator.gd
Syntax
class PlacementCamera2DValidator extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
success | Property | Camera2D Setup Validator for Grid Building Plugin This validation tool helps developers verify that their Camera2D setup meets the requirements for the Grid Building plugin's coordinate conversion system. [b]Usage:[/b] [codeblock] # In your scene setup or debugging code: var is_valid = PlacementCamera2DValidator.validate_scene_setup(get_tree().current_scene) if not is_valid: print("❌ Camera2D setup issues found - check console for details") [/codeblock] [b]Purpose:[/b] The Grid Building plugin requires Camera2D for pixel-perfect coordinate conversion. This validator ensures your scene setup meets these requirements. Result of coordinate conversion validation |
accuracy | Property | |
world_pos | Property | |
expected | Property | |
error | Property | |
to_string | Method | |
validate_scene_setup | Method | |
issues | Property | |
warnings | Property | |
viewport | Property | |
camera | Property | |
successes | Property | |
zoom | Property | |
zoom_x_log2 | Property | |
zoom_y_log2 | Property | |
test_result | Property | |
all_cameras | Property | |
enabled_cameras | Property | |
viewport_size | Property | |
test_screen_pos | Property | |
world_pos | Property | |
canvas_transform | Property | |
expected_world_pos | Property | |
accuracy | Property | |
success | Property | |
error_msg | Property | |
cameras | Property | |
validate_current_scene | Method | |
edited_scene | Property | |
validate_runtime_setup | Method |
Source
addons/grid_placement/utils/placement_camera2d_validator.gd
Plugin docs root:gdscript/plugins/grid_placement_dev/docs