关闭

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

标签: Unityc#nguiunity3dUnity经验
414人阅读 评论(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在线联网认证。(无效)


0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    作者声明
    该博客所用图片资源均作学习分享用途,请勿用于商业行为。传播者自负。
    如果本博客所写文章侵犯到您的权益,请主动联系留言,我们将及时删除相关内容。
    请支持使用正版软件,Unity正版DragonBones正版
    --------------------------------------------
    不要轻易使用 分享 的非正规的无版权授权的资源,一旦被发现,后果自负,风险自担。
    --------------------------------------------
    关于学习方法:从一个个小的测试实验,项目做起。记录分享自己的学习经验&思考,不仅有助于自己的学习总结,而且能在一定程度上帮助和自己一样步履瞒珊的初学者。
    pdf-xchange viewer,支持PDF文件,注释
    --------------------------------------------
    实践是检验真理的唯一途径。
    驾驭命运的舵是奋斗。不抱有一丝幻想,不放弃一点机会,不停止一日努力。——贝多芬
    我宁愿靠自己的力量,打开我的前途,而不愿求有力者的垂青。 ——雨果
    --------------------------------------------
    怎么样才能既不失礼貌,又能拒绝回答别人问题?
    答:回答一次500软妹币。
    --------------------------------------------
    如果想为那些原创内容作者贡献一份力量,请不要跳过广告,因为这有可能是他们唯一的收入来源。
    如果我们不帮助这些作者,当我们有一天也成为作者的时候,同样也没人会帮助我们。
    如果作者没有收入,那他们就不会更新 更好的内容 的视频。(亏本的生意没人做)
    如果您有更好的办法,请留言,谢谢。
    备忘
    个人资料
    • 访问:249615次
    • 积分:6092
    • 等级:
    • 排名:第4573名
    • 原创:372篇
    • 转载:11篇
    • 译文:1篇
    • 评论:22条
    文章分类
    最新评论