module Godot::NodeQuery

Overview

Traversal and pattern matching engine for scene tree glob queries.

Defined in:

libgodot/extensions/query.cr

Class Method Summary

Class Method Detail

def self.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.


def self.find_nodes(origin : Node, pattern : String, case_sensitive : Bool = true) : Array(Node) #

Searches the scene tree hierarchy from origin matching the glob pattern. Supports single-level wildcard '*' and recursive subtree wildcard '**'.


def self.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.