PlacementDiagnostics — runtime/shared diagnostics helpers Provide small, safe, static helpers for generating diagnostic strings that can be reused by runtime code and tests. Notes:
- Keep these functions side-effect free (no printing) so callers may log or assert as they prefer.
Source: addons/grid_placement/utils/placement_diagnostics.gd
Syntax
class PlacementDiagnostics extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
format_debug | Method | |
format_stack_summary | Method | |
format_node_label | Method | |
format_visibility_context | Method | |
format_shape_cast_collisions | Method | |
format_targeting | Method | |
format_canvas_item_state | Method | |
has_bounds | Property | World-space view rectangle of a camera, as returned by camera_world_bounds(). False when there was no camera or viewport to measure. contains() then fails open. |
center | Property | |
zoom | Property | |
world_min | Property | |
world_max | Property | |
contains | Method | |
camera_world_bounds | Method | |
is_inside_camera_bounds | Method | |
format_screen_state | Method | |
format_placement_report | Method | |
format_placement_report_summary | Method | |
get_all_report_issues_text | Method | |
get_failure_reasons | Method | |
report_has_issue | Method | |
assert_report_success | Method |