The Godot Barn
Sign in
Sign in
Home
News & updates
Explore
Articles
Snippets
Shaders
Themes
Submit content
Sign in to submit content
Give or get help
Tutorials
Questions
Conversations
Coming soon!
traits
Recent snippets tagged «traits»
0
3
## utility_class.gd class_name UtilityClass ## Returns all children of given type. ## The returned Array is untyped, so it has to be assigned to a typed array later. static func get_children_of_type(parent: Node, type: Variant) -> Array: var array: Array
Get children Nodes of specific Type
wchc
Dec 19th, 2024
A type-safe method that will retrieve a child or children of specific Type.
Godot
4.x
GDScript
traits
interfaces
type
node
Filters
Contents containing
Language
GDScript
C#
Both
License
All licenses
CC-BY
CC0
GPLv3
AGPLv3
MIT
Unlicense
Godot version(s)
All versions
Godot 3.x
Godot 4.x
Godot 4.0
Godot 4.1
Godot 4.2
Godot 4.3
Godot 4.4
Reset filters
Apply filters
Popular tags recently
functions
first-person
bus
UI
log
mesh
primitive
debug
frames
camera3d
controller
behavior
boids
flock
resource management
Please wait ...
Okay
Okay
No
Yes
Okay