fuzzyworld

godot-shooter / godot-4-testing / files / Utils.gd

Branch godot-4-testing · default branch · all branches

Utils.gd

491 B · history · blame

1@tool
2# Note: `tool` is optional but without it there are no error reporting in the editor
3
4static func log(arg1 = null, arg2 = null, arg3 = null, arg4 = null, arg5 = null, arg6 = null, arg7 = null, arg8 = null, arg9 = null):
5 var text = ""
6 var now = Time.get_datetime_string_from_system(false, true)
7 text += now
8 text += "> "
9 for argument in [arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9]:
10 if argument != null:
11 var argText = "%s " % argument
12 text += argText
13 print(text)