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.
Source: addons/grid_placement/utils/placement_camera2d_validator.gd
Syntax
class PlacementCamera2DValidator extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
success | Property | Result of coordinate conversion validation |
accuracy | Property | |
world_pos | Property | |
expected | Property | |
error | Property | |
to_string | Method | |
validate_scene_setup | Method | |
validate_current_scene | Method | |
validate_runtime_setup | Method |