How can I use FName as enum?

Fnames are dynamic at runtime, Enums are static at compile time, and Enums are limited to 256 entries, so a general solution for conversion from Fnames to Enums seems impossible.

i think you should instead make an array of Fnames, and use find to get an index, then you can switch on int.