Unity-Technologies / com.unity.uiwidgets

UIWidgets is a Unity Package which helps developers to create, debug and deploy efficient, cross-platform Apps.
https://unity.cn/uiwidgets
625 stars 78 forks source link

关于Unity.UIWidgets.widgets.ui_的问题 #322

Closed yixuan2009 closed 2 years ago

yixuan2009 commented 2 years ago

按照入门教程的代码UIWidgetsDemo.cs,会提示Assets/DemoTest/UIWidgetsDemo.cs(8,37): error CS0234: The type or namespace name 'ui' does not exist in the namespace 'Unity.UIWidgets.widgets' (are you missing an assembly reference?) 以及Assets/DemoTest/UIWidgetsDemo.cs(19,33): error CS0115: 'UIWidgetsDemo.main()': no suitable method found to override。 环境都已配置好,不知道这是什么情况?

zhuxingwei commented 2 years ago

Hi Thanks for the reporting !

It looks like that Unity fails to find the UIWidgets package. Please check by the following step to locate the cause: (1) Open "Package Manager" and check whether the UIWidgets package can be found in the In Project filter (2) If you cannot find UIWidgets in the "Package Manager", then please ensure that the UIWidgets package (i.e., the contents inside com.unity.uiwidgets/com.unity.uiwidgets/) is put inside a subfolder named as com.unity.uiwidgets within the Packages folder of your project

Please feel free to contact us in this thread for any further questions. Thanks !