Enumerators

Hello,

Is there a way / existing unit to generate enum list. (in order to be able to use Switch/Select on Custom enum list for example)

I’ve found this on the documentation : Class EnumLiteralGenerator | Bolt Visual Scripting | 1.4.12

but I cannot find how to use it

And this on old Bolt forum that matchs :
https://support.ludiq.io/en/communities/5/topics/1482-enum-generator

Does it still exist?

Thanks

No, gotta write it in C#. Bolt will automatically pick up any C# enums present on the project after rebuilding Unit Options.

For example:

public enum WeaponType
{
      Sword,
      Spear,
      Bow
}

That’s all you need in an empty C# script to get the enum show up for Switch on Enum and other Enum related nodes in Bolt.

1 Like

thanks