Custom Function
func · parameters · if/elif/else · return
Free · GDScript 4.x
Function Signature
function name
return type
Static function static func
Parameters (up to 3)
Enable each parameter you need. Disabled ones are skipped in the signature.
p1 Parameter 1
name
type
default value (optional, empty = required)
p2 Parameter 2
p3 Parameter 3
if Branch
condition
action
elif Branch (optional)
Include elif adds elif block
else Branch (optional)
Include else fallback branch
Return Statement
Final return after all branches
Function paste into your script
# tap Generate to produce code