I was creating a custom control in unity and it was working all fine till i decided to move the class of the control inside a namespace, if i am moving my code inside a namespace i am getting this error saying
Element 'LabelAutoFit' is missing a UxmlElementAttribute and has no registered factory method.
And after moving my control inside the new namespace I even changed my uxml to import this namespace like this
<LabelAutoFit /> to <New.NameSpace.LabelAutoFit />
but I am still getting the error. I tried asking chatgpt and it is suggesting me to use that old UxmlFactory class but I guess it is deprecated now. And I created another custom control but this time I kept it inside a namespace right from start and it is showing no issues. Now I want to know how to update the namespace of a custom control that is already inside an uxml document.