-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Warning for unused variables in class. #5782
Comments
I am assuming that this Proposal refers to the properties created outside of method definitions. This makes total sense for variables existing in a limited scope, however. |
Go to your project settings, gdscript, warnings, and enable said warning. |
It's enabled by default tho. |
Describe the project you are working on
A 2D Game
Describe the problem or limitation you are having in your project
I want to know what variables are unused in my class. Using CTRL F for searching at the moment.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
See above
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Show a warning ala IntelliJ or something when the variable is never used.
If this enhancement will not be used often, can it be worked around with a few lines of script?
Not sure if this can be done, no extension found.
Is there a reason why this should be core and not an add-on in the asset library?
It is an oveall improvement for every project.
The text was updated successfully, but these errors were encountered: