最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c# - How to update the namespace a custom control of Unity UIToolKit that is already inside a UI document - Stack Overflow

programmeradmin2浏览0评论

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.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论