【Unity&NGUI】启动工程文件遇到的错误

标签: Unity c# ngui unity3d Unity经验
778人阅读 评论(0) 收藏 举报
分类:



今天启动很多天没有启动的Unity工程(之前使用的工程都是完好的),NGUI就出现了下面的错误。



主要错误是:
missing an assembly reference

错误:
Assets/NGUI/Scripts/Internal/NGUIText.cs(129,14): error CS1502: The best overloaded method match for `UnityEngine.Font.GetCharacterInfo(char, out UnityEngine.CharacterInfo, int, UnityEngine.FontStyle)' has some invalid arguments
Assets/NGUI/Scripts/Internal/NGUIText.cs(129,40): error CS1503: Argument `#2' cannot convert `out CharacterInfo' expression to type `out UnityEngine.CharacterInfo'
Assets/NGUI/Scripts/Internal/NGUIText.cs(133,16): error CS1502: The best overloaded method match for `UnityEngine.Font.GetCharacterInfo(char, out UnityEngine.CharacterInfo, int, UnityEngine.FontStyle)' has some invalid arguments
Assets/NGUI/Scripts/Internal/NGUIText.cs(133,42): error CS1503: Argument `#2' cannot convert `out CharacterInfo' expression to type `out UnityEngine.CharacterInfo'
Assets/NGUI/Scripts/Internal/NGUIText.cs(141,25): error CS1061: Type `CharacterInfo' does not contain a definition for `maxY' and no extension method `maxY' of type `CharacterInfo' could be found. Are you missing an assembly reference?
Assets/NGUI/Scripts/Internal/NGUIText.cs(142,25): error CS1061: Type `CharacterInfo' does not contain a definition for `minY' and no extension method `minY' of type `CharacterInfo' could be found. Are you missing an assembly reference?
Assets/NGUI/Scripts/Internal/NGUIText.cs(198,20): error CS1502: The best overloaded method match for `UnityEngine.Font.GetCharacterInfo(char, out UnityEngine.CharacterInfo, int, UnityEngine.FontStyle)' has some invalid arguments
Assets/NGUI/Scripts/Internal/NGUIText.cs(198,51): error CS1503: Argument `#2' cannot convert `out CharacterInfo' expression to type `out UnityEngine.CharacterInfo'
Assets/NGUI/Scripts/Internal/NGUIText.cs(202,22): error CS1061: Type `CharacterInfo' does not contain a definition for `advance' and no extension method `advance' of type `CharacterInfo' could be found. Are you missing an assembly reference?
Assets/NGUI/Scripts/Internal/NGUIText.cs(265,20): error CS1502: The best overloaded method match for `UnityEngine.Font.GetCharacterInfo(char, out UnityEngine.CharacterInfo, int, UnityEngine.FontStyle)' has some invalid arguments
Assets/NGUI/Scripts/Internal/NGUIText.cs(265,51): error CS1503: Argument `#2' cannot convert `out CharacterInfo' expression to type `out UnityEngine.CharacterInfo'
Assets/NGUI/Scripts/Internal/NGUIText.cs(294,28): error CS1061: Type `CharacterInfo' does not contain a definition for `minX' and no extension method `minX' of type `CharacterInfo' could be found. Are you missing an assembly reference?
Assets/NGUI/Scripts/Internal/NGUIText.cs(295,28): error CS1061: Type `CharacterInfo' does not contain a definition for `maxX' and no extension method `maxX' of type `CharacterInfo' could be found. Are you missing an assembly reference?
Assets/NGUI/Scripts/Internal/NGUIText.cs(297,28): error CS1061: Type `CharacterInfo' does not contain a definition for `maxY' and no extension method `maxY' of type `CharacterInfo' could be found. Are you missing an assembly reference?
Assets/NGUI/Scripts/Internal/NGUIText.cs(298,28): error CS1061: Type `CharacterInfo' does not contain a definition for `minY' and no extension method `minY' of type `CharacterInfo' could be found. Are you missing an assembly reference?
Assets/NGUI/Scripts/Internal/NGUIText.cs(300,26): error CS1061: Type `CharacterInfo' does not contain a definition for `uvTopLeft' and no extension method `uvTopLeft' of type `CharacterInfo' could be found. Are you missing an assembly reference?

Assets/NGUI/Scripts/Internal/NGUIText.cs(301,26): error CS1061: Type `CharacterInfo' does not contain a definition for `uvBottomLeft' and no extension method `uvBottomLeft' of type `CharacterInfo' could be found. Are you missing an assembly reference?


采取的措施:

1.删除原工程的NGUI文件夹,重新导入。(无效)

2.新建一个工程,把备份(原工程)的工程 的包导入(回档成功)

3.把原工程文件导入新建工程。(无效)

4.更新NGUI最新版本,使得UNITY在线联网认证。(无效)


查看评论

Assets/NGUI/Scripts/UI/UILabel.cs(398,33): error CS0506: `UILabel.relativeSize': cannot override inh

本来想上传个截图来着,不曾想csdn的这个编辑器导入图片以后老是破裂,那我就字述一下了,初学unity做个项目,做的差不多了已经,然后需要导入HUD Text来做那个提示。导入步骤就不在此叙述了,导入...
  • liu_xueping
  • liu_xueping
  • 2015-05-05 15:05:53
  • 1404

Unty4.7 导入 NGUI3.8.2报错解决

Unity4.7 导入某个版本的NGUI时,假如出现“Assets/NGUI/Scripts/Interaction/UIPopupList.cs(956,45): error CS1061: Typ...
  • linshuhe1
  • linshuhe1
  • 2017-02-14 10:30:03
  • 1325

Unity之NGUI常见问题汇总

主要总结一下UIToggle、UIButton、UISprite、NGUI序列帧、ScrollView、Collider等基础知识的常见问题。...
  • qq_36238788
  • qq_36238788
  • 2016-10-13 14:44:04
  • 1922

关于unity2017导入NGUI 3.11.2版本,出现Unable to find style ‘AS’....问题

导入NGUI后,启动项目,Console口会出现上述警告,双击进入报错的脚本中,将上面的“AS TextArea”中的AS删除,即可解决警告信息。。...
  • qq_32563917
  • qq_32563917
  • 2018-03-13 10:49:49
  • 216

NGUI发布后看不见UI层解决

首先请查看发布后程序的运行日志: 其中提示:You can'tplace widgets on a layer different than the UIPanel that manages th...
  • leoysq
  • leoysq
  • 2016-11-24 10:22:44
  • 2091

unity3D使用NGUI创建gameobject时game窗口不显示问题

整了好久才发现,我是用系统的UI菜单创建的object,而使用插件的UI Root下需要用NGUI菜单创建与其对应的object才可以在相应camera中看到 UI Root有自己的camera,...
  • FireGhost57
  • FireGhost57
  • 2017-03-24 11:17:39
  • 859

解决硬盘分区错误, 纯Dos磁盘工具Diskpart的用法.

本文转载自:http://www.cnblogs.com/unruly7/archive/2010/04/30/1725137.html 很多时候, 我们在使用PQ, DM分区工具执行操作的时候, 很...
  • qq280948982
  • qq280948982
  • 2011-05-12 09:16:00
  • 1466

vs2010 启动失败

当启动 VS2010失败时提示:  问题事件名称: APPCRASH   应用程序名: devenv.exe   应用程序版本: 10.0.30319.1   应用程序时间戳: 4...
  • xiabin1002
  • xiabin1002
  • 2016-06-03 16:25:16
  • 575

unity中创建UI组件后无法在Scene视图显示

今天在unity添加了个Image,然而突然在Scene视图不显示了,但是在Game视图却看的见 如下图: 后来查了一下发现原来是把Layer给设置成UI了,只要把Canvas的Layer改回De...
  • Wene_Zheng
  • Wene_Zheng
  • 2016-10-16 12:00:58
  • 2035

【Unity&NGUI】启动工程文件遇到的错误

今天启动很多天没有启动的Unity工程(之前使用的工程都是完好的),NGUI就出现了下面的错误。 主要错误是: missing an assembly reference 错误: Assets...
  • BuladeMian
  • BuladeMian
  • 2017-04-03 10:25:50
  • 778
    作者声明
    该博客所用图片资源均作学习分享用途,请勿用于商业行为。传播者自负。
    如果本博客所写文章侵犯到您的权益,请主动联系留言,我们将及时删除相关内容。
    请支持使用正版软件,Unity正版DragonBones正版
    --------------------------------------------
    不要轻易使用 分享 的非正规的无版权授权的资源,一旦被发现,后果自负,风险自担。
    --------------------------------------------
    关于学习方法:从一个个小的测试实验,项目做起。记录分享自己的学习经验&思考,不仅有助于自己的学习总结,而且能在一定程度上帮助和自己一样步履瞒珊的初学者。
    pdf-xchange viewer,支持PDF文件,注释
    --------------------------------------------
    实践是检验真理的唯一途径。
    --------------------------------------------
    怎么样才能既不失礼貌,又能拒绝回答别人问题?
    答:回答一次500软妹币。
    --------------------------------------------
    如果想为那些原创内容作者贡献一份力量,请不要跳过广告,因为这有可能是他们唯一的收入来源。
    如果我们不帮助这些作者,当我们有一天也成为作者的时候,同样也没人会帮助我们。
    如果作者没有收入,那他们就不会更新 更好的内容 的视频。(亏本的生意没人做)
    如果您有更好的办法,请留言,谢谢。
    个人资料
    持之以恒
    等级:
    访问量: 45万+
    积分: 9389
    排名: 2439
    文章分类