Vojtěch Struhár

Posted on 14. 10. 2025 | #godot

Godot 4.5 - varargs

Godot 4.5 added support for functions with variable number of arguments. Also known as variadic functions. They look like this:

func warning(...msg: Array) -> void:
	var message: String = " ".join(msg.map(str))
	print("WARNING |", message)

People have been asking for them for literal years, so even now when I google Godot varargs function, the top result says they are not supported. Well - they are now! See more examples here!

I’m writing this article just to help to turn the tide of SEO. Go, Godot!

Read next → Switch from iTerm2 to Ghostty on MacOS