module Godot::ClassMethods

Defined in:

libgodot/extensions/query.cr

Instance Method Summary

Instance Method Detail

def first_node_in_group?(group : String, type : T.class) : T | Nil forall T #

Returns the first node in the given group cast to type T, or nil if none found.


def first_node_in_group?(group : String) : Node | Nil #

Returns the first node in the given group, or nil if none found.


def get_nodes_in_group(group : String, type : T.class) : Array(T) forall T #

Returns all nodes in the given group cast to type T.


def get_nodes_in_group(group : String) : Array(Node) #

Returns all nodes in the given group as Array(Node).


def group(name : String | Symbol) : GroupQuery #

Returns a fluent GroupQuery for the specified node group.