We have a few static methods like RegisterAllMenus() and stuff that loop over all assemblies and register Attributes found in a dictionary. They also have a Clear() since they get cleared and re-registered on scripts reloading since they can contain said attributes.
It would be nice to have some singular source that handles finding attribute types
Maybe like
AttributeHolder.Clear();
AttributeHolder.GetAll()
AttributeHolder.GetAllOnClass()
AttributeHolder.GetAllOnField()
Ones like GetAllOnField can cache the attributes on the field.
Not 100% sure how this would work, just thought about it as i just added yet another RegisterAll attributes method for the new PropertyDrawer stuff im working on
We have a few static methods like RegisterAllMenus() and stuff that loop over all assemblies and register Attributes found in a dictionary. They also have a Clear() since they get cleared and re-registered on scripts reloading since they can contain said attributes.
It would be nice to have some singular source that handles finding attribute types
Maybe like AttributeHolder.Clear(); AttributeHolder.GetAll()
AttributeHolder.GetAllOnClass()
AttributeHolder.GetAllOnField()
Ones like GetAllOnField can cache the attributes on the field.
Not 100% sure how this would work, just thought about it as i just added yet another RegisterAll attributes method for the new PropertyDrawer stuff im working on