Files
godot-website/collections/_release_4_5/entry-scripting-gdscript-introducing-variadic-arguments.md
Adam Scott 5387797774 Godot 4.5 release page
Huge thanks to JohnVeness, AThousandShips, and Meorge for their
great help rewording my broken English.
2025-09-15 16:03:40 -04:00

1.3 KiB

type, section, subsection, rank, importance, anchor, title, text, contributors, read_more
type section subsection rank importance anchor title text contributors read_more
entry scripting gdscript 0 4 introducing-variadic-arguments Introducing variadic arguments GDScript functions can now accept an arbitrary number of parameters! ```manual-highlight @[extends](keyword) @[Node](enginetype) @[func](keyword) @[sum](function)@[(](symbol)first_number@[:](symbol) @[float](basetype)@[,](symbol) @[...](symbol)numbers@[:](symbol) @[Array](basetype)@[) ->](symbol) @[float](basetype)@[:](symbol) @[var](keyword) total @[:=](symbol) first_number @[for](keyword) number @[in](symbol) numbers@[:](symbol) total @[+=](symbol) number @[return](keyword) total @[func](keyword) @[_ready](function)@[() ->](symbol) @[void](basetype)@[:](symbol) @[sum](function)@[(](symbol)@[1](basetype)@[)](symbol) @[# 1.0](comment) @[sum](function)@[(](symbol)@[1](basetype)@[,](symbol) @[2](basetype)@[,](symbol) @[3](basetype)@[)](symbol) @[# 6.0](comment) @[sum](function)@[(](symbol)@[1](basetype)@[,](symbol) @[2](basetype)@[,](symbol) @[3](basetype)@[,](symbol) @[4](basetype)@[,](symbol) @[5](basetype)@[)](symbol) @[# 15.0](comment) ```
name github
Danil Alexeev dalexeev
https://github.com/godotengine/godot/pull/82808