Skip to content
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

Says class is not being used in script when it is #25885

Closed
Lincoln-WIlcox opened this issue Feb 14, 2019 · 4 comments
Closed

Says class is not being used in script when it is #25885

Lincoln-WIlcox opened this issue Feb 14, 2019 · 4 comments
Assignees
Milestone

Comments

@Lincoln-WIlcox
Copy link

Lincoln-WIlcox commented Feb 14, 2019

Godot version:
Godot 3.1 beta 1

OS/device including version:
Windows 10

Issue description:
I made a new project to test out classes (since somehow i had no idea classes were a thing in godot up until this point). I made a new class and made an array of that type of class in a script and ran a for loop to display parameters of the class which worked fine. But i got an error saying that i loaded the class but never used it, when i clearly did use it.
image: https://imgur.com/a/LalbAsM
Also, when looking to see if this was already an issue i found this: #23207 but i wasn't sure if it was the same problem or not, especially since people said that the error was supposed to be there, when in this case it's clearly not.
I think this is a problem any time you use the classes in an array or dictionary, but i'm not sure cause iv'e honestly not used them enough yet.

Steps to reproduce:
Create a new project
Create a new script class
Create a new scene with a script with a variable that loads the class
Create an array in _ready() with elements being new versions of that class

Minimal reproduction project:
classes testing.zip

@akien-mga
Copy link
Member

Can you test with 3.1 beta 4?

@KoBeWi
Copy link
Member

KoBeWi commented Apr 1, 2019

Still happens on stable.

@isaacremnant
Copy link
Contributor

Looks like this was fixed on master, I can no longer reproduce the error with the attached project.

@KoBeWi
Copy link
Member

KoBeWi commented Sep 4, 2019

Yep, this no longer happens.

@KoBeWi KoBeWi closed this as completed Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants