-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Custom class in Autoload script do not have autocompletion #75021
Comments
Is this the same as #74888? |
oh, yes, I missed this similar issue.
Should I close the issue? I'm first report an issue on github. |
If it covers your issue then yes, otherwise keep it open, or if you're unsure |
I think that after the problem is fixed should also solve my problem. |
No problem! |
Godot version
v4.0.1.rc1.official [d23922f]
System information
MacOS 13.2, Mac mini(Inter chip)
Issue description
Please review the issues in the video.
autoload-no-autocompletion.mov
Here is my autoload setting.
As shown in video, custom class in autoload script has no autocompletion hints.
But declare the autoload type as a variable seems correctly, like the "g" variable in video.
Just a guess, it seems be able to infer the type, just broken in autocompletion.
If type the following code:
Even "age" is no static references, you can't "Command + click" to jump to declaration.
But the editor will alert an error "String to Int".
I have tried the Internal class Sprite2D is ok, all works fine.
Steps to reproduce
Minimal reproduction project
autoload-no-autocompletion.zip
The text was updated successfully, but these errors were encountered: