Class GBDebugSettings
- Namespace
- GridPlacement.GDScript
- Assembly
- MoonBark.GridPlacement.GDScript.dll
Debug settings for logging and debugging output. Includes settings for visual debugging as well such as RuleCheckIndicator debug _draw calls to the screen. Note: Feature-specific logging toggles (e.g., GridPositioner2D logging flags) still only produce output when the GBLogger level is set to VERBOSE or higher.
class GBDebugSettings extends GBResource
Properties
level
@export var level: LogLevel = LogLevel.WARNING:
grid_positioner_log_mode
@export var grid_positioner_log_mode: GridPositionerLogMode = GridPositionerLogMode.NONE:
draw_rule_check_indicator_debug
Enable or disable drawing of RuleCheckIndicator debug overlays.
@export var draw_rule_check_indicator_debug: bool = false
indicator_collision_point_min_radius
RuleCheckIndicator visual tuning exposed in debug settings so teams can centrally adjust debug overlays without editing code.\n\nMinimum pixel radius used when drawing collision points for indicators.
@export var indicator_collision_point_min_radius: float = 2.0
indicator_collision_point_scale
Scale factor applied to collision point radius based on the indicator's grid size.
@export var indicator_collision_point_scale: float = 0.15
indicator_connection_line_min_width
Minimum pixel width used when drawing connection lines for indicators.
@export var indicator_connection_line_min_width: float = 1.0
indicator_connection_line_scale
Scale factor applied to connection line width based on the indicator's grid size.
@export var indicator_connection_line_scale: float = 0.05
indicator_collision_point_color
Color used to draw collision points (default: red).
@export var indicator_collision_point_color: Color = Color.RED
indicator_connection_line_color
Color for helper connection lines (default: orange).
@export var indicator_connection_line_color: Color = Color.ORANGE
indicator_outline_color
Outline color used when drawing indicator shapes (default: white).
@export var indicator_outline_color: Color = Color.WHITE
Methods
set_debug_level
func set_debug_level(value: LogLevel) -> void:
Parameters
value
Returns
get_editor_issues
func get_editor_issues() -> Array[String]:
Returns
get_runtime_issues
func get_runtime_issues() -> Array[String]:
Returns
Events
debug_level_changed
The message verbosity level for plugin logging typically handeled through GBLogger objects resolved through the PlacementContainer. Emitted when the debug level changes to a new value
signal debug_level_changed(new_level: int)
grid_positioner_log_mode_changed
signal grid_positioner_log_mode_changed(new_mode: int)