module
Godot::NodeQuery
Overview
Traversal and pattern matching engine for scene tree glob queries.
Defined in:
libgodot/extensions/query.crClass Method Summary
-
.find_node_by_regex(origin : Node, regex : Regex, recursive : Bool = true) : Node | Nil
Finds the first node matching the regex pattern in the hierarchy from origin.
-
.find_nodes(origin : Node, pattern : String, case_sensitive : Bool = true) : Array(Node)
Searches the scene tree hierarchy from origin matching the glob pattern.
-
.find_nodes_by_regex(origin : Node, regex : Regex, recursive : Bool = true) : Array(Node)
Searches the scene tree hierarchy from origin matching the regex pattern against node names.
Class Method Detail
Finds the first node matching the regex pattern in the hierarchy from origin.
Searches the scene tree hierarchy from origin matching the glob pattern. Supports single-level wildcard '*' and recursive subtree wildcard '**'.