module
Godot::ClassMethods
Defined in:
libgodot/extensions/query.crInstance Method Summary
-
#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.
-
#first_node_in_group?(group : String) : Node | Nil
Returns the first node in the given group, or nil if none found.
-
#get_nodes_in_group(group : String, type : T.class) : Array(T) forall T
Returns all nodes in the given group cast to type T.
-
#get_nodes_in_group(group : String) : Array(Node)
Returns all nodes in the given group as Array(Node).
-
#group(name : String | Symbol) : GroupQuery
Returns a fluent GroupQuery for the specified node group.
Instance Method Detail
Returns the first node in the given group cast to type T, or nil if none found.
Returns the first node in the given group, or nil if none found.
Returns all nodes in the given group cast to type T.
Returns all nodes in the given group as Array(Node).
Returns a fluent GroupQuery for the specified node group.