class
Diorite::DebugShape2D
- Diorite::DebugShape2D
- Godot::Node2D
- Godot::CanvasItem
- Godot::Node
- Godot::Object
- Reference
- Object
Overview
Base inspector-configurable 2D debug shape node rendered on Godot's canvas.
Supports live-previewing in the Godot Editor (@[Tool] mode) and updates wireframe
geometry dynamically using Lapis::Core::FrameArena scratchpad buffers whenever
properties are modified in the Inspector or script.
Concrete subclasses (like DebugRect2D or DebugCircle2D) implement build_shape
and build_shape_arena.
Direct Known Subclasses
Defined in:
diorite/nodes/debug_shape_2d.crConstructors
Class Method Summary
- ._godot_has_virtual_method(method_name : String) : Bool
- ._godot_register_node_class : Void
- .godot_class_name : String
- .godot_parent_class_name : String
Macro Summary
-
autoload(*args, **kwargs)
DSL directives for in-body autoload configuration
- autoload_node(*args, **kwargs)
- build(**kwargs, &block)
- create(**kwargs, &block)
Instance Method Summary
-
#_exit_tree : Void
Lifecycle callback called when the node exits the tree hierarchy.
-
#_godot_call_tool_button(button_name : String) : Void
Dispatches inspector tool button clicks on this object.
-
#_godot_call_virtual(method_name : String, delta : Float64) : Void
Virtual method and property dispatch hooks overridden by class registration macros.
-
#_godot_get_property(prop_name : String, ret_ptr : Pointer(Void)) : Void
Invoked by the GDExtension bridge when retrieving an exposed
@exportproperty. -
#_godot_set_property(prop_name : String, val_ptr : Pointer(Void)) : Void
Invoked by the GDExtension bridge when setting an exposed
@exportproperty. -
#_process(delta : Float64) : Void
Per-frame process callback receiving delta timestep in seconds (
Float64). -
#_ready : Void
Lifecycle callback called when the node enters the active scene tree.
-
#apply_dictionary_properties!(dict : Godot::Dictionary) : Void
Populates
@[Export]properties on this object from aGodot::Dictionary. -
#color : Godot::Color
Line and outline color.
-
#color=(color : Godot::Color)
Line and outline color.
-
#draw_on_top : Bool
When true, elevates z_index to 4096 so the shape renders on top of canvas elements.
-
#draw_on_top=(draw_on_top : Bool)
When true, elevates z_index to 4096 so the shape renders on top of canvas elements.
-
#export_config_hash : UInt64
Computes a deterministic 64-bit hash of all
@[Export]properties on this object.
Constructor Detail
Class Method Detail
Macro Detail
Instance Method Detail
Lifecycle callback called when the node exits the tree hierarchy.
Dispatches inspector tool button clicks on this object.
Virtual method and property dispatch hooks overridden by class registration macros.
Delta timestep is received with 64-bit precision (Float64).
Invoked by the GDExtension bridge when retrieving an exposed @export property.
Invoked by the GDExtension bridge when setting an exposed @export property.
Per-frame process callback receiving delta timestep in seconds (Float64).
Lifecycle callback called when the node enters the active scene tree.
Populates @[Export] properties on this object from a Godot::Dictionary.
When true, elevates z_index to 4096 so the shape renders on top of canvas elements.
When true, elevates z_index to 4096 so the shape renders on top of canvas elements.
Computes a deterministic 64-bit hash of all @[Export] properties on this object.