Can Attributes be Enums?

zoranac

New member
I am trying to set up an Item Definition Attribute for my item categories, and want a public enum to be referenced, but when I search it when setting the attribute type, it doesn't appear. I figure enums are common enough that I was wondering if I am missing something or if there is some work around to get the attribute to have an enum as a type.
 
You can use any type as attribute. Enums are no exception.
The reason it does not appear is because we limit the types in the list otherwise there are tens of thousands to types just from System and other non-releant types.

To add your type such that it can appear in the list use the unitOption window
Learn more here
 
Top