HammeriteUtils

Core: files, names and extension. Inherits RefCounted

Small node helpers shared across the Hammerite addons.

These lived in the consuming game's own autoload, which meant hammerite-editor could not run in a project that did not happen to define it - a dependency pointing the wrong way down the stack, and one that only showed itself when the addons were first asked to stand on their own. They are static, so nothing has to be registered or wired up to use them.

Methods

ReturnsMethod
voidpause_node(node: Node, paused: bool) static
AABBget_node_aabb(node: Node, exclude_top_level_transform: bool = false) static

Method descriptions

pause_node()

static func pause_node(node: Node, paused: bool) -> void

Stop or resume a node's per-frame and input processing. Godot has no single "pause this node" switch that covers input as well as processing, so this is the six calls it actually takes, in one place, rather than copied wherever an editor tool needs to put a viewport to sleep.

get_node_aabb()

static func get_node_aabb(node: Node, exclude_top_level_transform: bool = false) -> AABB

The combined AABB of the visual instances in a node and its descendants, in its parent's space - or, with exclude_top_level_transform, in the node's own. A node with nothing visual under it - a marker, a timer - adds nothing, and one with nothing visual at all is an empty AABB. Skips anything queued for deletion, since a node on its way out should not stretch the bounds of what is left.

Hammerite 1.0 · built from a6dd634, 2026-10-10