0 votes

I have the following enum in a game script:
enum Tile {Stone, Amethyst, Emerald, Mithril, Ruby, Topaz, Gold, Background, AnimatedStone, AnimatedAmethyst, AnimatedEmerald, AnimatedMithril, AnimatedRuby, AnimatedTopaz, AnimatedGold, MoveUp, MoveRight, MoveDown, MoveLeft} print_debugs of the enum show it is indeed empty.

But when I try to access it via Tile.Background, it fails. It used to work back when the enum was named EasyTile.

If I create a new enum and name it something like GameTile, with the EXACT SAME VALUES, it shows that there are values in it. "Ok" I think, "I'll just switch all my accesses of Tile to GameTile and it should work".

Now TILE has values but GAMETILE does not. ?! I'm not sure what happened, but now Godot is not recognizing an enum no mater what I do.

in Engine by (12 points)

Your explanation is unclear. Please post the code you are using.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.