Using Unity3Ds built in EditorGUI System I would like to make the work of my gamedesigner easier by creating a custom editor for dialogue systems. I would like to be able to insert Item names into the Editor's EnumPopup. The problem is that my List/Array of Items is generated at runtime so I cant use it as an enum.
Every of my Items also has an assigned ItemID which makes the enum logic a bit easier.
How could I convert Dictionary<int, Item> to an enum which can be then used in ...
EnumPopup(Enum selected, params GUILayoutOption[] options);