Can i cycle through enum values

4.2

Can I cycle through enum values, and loop them once it reaches the end.

Is there a function already made for this or should I make it myself

Check the documentation about enums in GDScript