-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GDScript 2.0: Unknown Function convert()
in @GDScript scope
#65919
Comments
convert()
in @GDScript scope
Seems related (same?) to #5523 |
@KoBeWi. It indeed looks to be the same. I guess a decision whether to remove or improve it was not reached since this was from a year ago. I say just nuke the thing. One less "conversion" function to worry about among the many we already have. I guess not many used it either. |
I have the same issue, I can't convert a variant from a |
@QushyQushy just type cast it. Use the |
It returns null sometimes so that was the issue. I just used an if statement. |
Just wanted to point out that |
It's not very clear in the screenshots what types you are actually trying to convert and how. But if you have a string like |
PLEASE don't remove the convert function, i need it too! |
@MikeSchulze what are you using it for? |
I build the plugin GdUnit3 and current on migrate to Godot4.
By nature, the parser reads everything from a file as string and I have to convert the default arguments final from string to the real type. |
Did you try using |
Yes i use currently |
In #70080 I am proposing to replace the existing |
Godot version
4.0-beta1
System information
Zorin OS-16, Intel hd 5500HD
Issue description
Some Global Scope functions are "unknown" in GDscript. "convert", function is one such function. Not sure how/why this is possible.
Steps to reproduce
Use the convert function to any meaningful task should trigger the error.
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: