Godot 3.1.1 Stable -- not recognizing values in Enum

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Kyraleese

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.

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

kidscancode | 2019-08-03 17:41