Classes derived from VisualElement must implement a UxmlFactory class to expose them to UXML and UI Builder. My idea is to automatically generate a simple implementation
public new class UxmlFactory : UxmlFactory<X> {}
with source generation if no UxmlFactory is defined. Users could then opt-out of this behaviour with an attribute like [DisableUxmlFactoryGeneration], which could be inherited.
The UxmlTraits generation implemented in #54 also generates UxmlFactory. At the moment, I don't think it's necessary to generate a UxmlFactory for every UIComponent. I consider this resolved.
Classes derived from VisualElement must implement a UxmlFactory class to expose them to UXML and UI Builder. My idea is to automatically generate a simple implementation
with source generation if no UxmlFactory is defined. Users could then opt-out of this behaviour with an attribute like
[DisableUxmlFactoryGeneration]
, which could be inherited.