Is there a way to select specific enum values and save them to another exported enum?

Godot Version

4.3

Question

I have a global enum of skill id as the following:

enum skill_id { BASH, FIRE_BALL, SLASH, WIND_CUTTER }

I want to take out only the magic skills, FIRE_BALL and WIND_CUTTER, and save them to another enum within a custom resource so that it shows as a dropdown menu on the inspector.
Is there a way to do this?

Instead of this being a simple enum, you can make it a Resource with member variables like skill_name and skill_type, etc. Then you can filter and display it in different places based on the skill_type.

Thank you for your reply. Let me try that without the enum.

1 Like