GDscript load function returns FileAccess::get_var

Godot Version

v4.2.1.stable.mono.official [b09f793f5]

Question

Script Pastebin here

Why does this code return a FileAccess::get_var rather than the array I set? that particular array is for debugging.

get_var is a function, I think you are just printing the namespace and name of the callable function.

your code should be

print(file.get_var())

Awesome, Thanks! I was converting it from C# and missed it

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.