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

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://linsh-tech.blog.csdn.net/article/details/55095482

Unity4.7 导入某个版本的NGUI时,假如出现“Assets/NGUI/Scripts/Interaction/UIPopupList.cs(956,45): error CS1061: Type `UnityEngine.BoxCollider2D' does not contain a definition for `offset' and no extension method `offset' of type `UnityEngine.BoxCollider2D' could be found (are you missing a using directive or an assembly reference?)”


原因:

当前导入的NGUI版本没有对Unity4.7的版本进行判断


解决方案:

全局搜索“#if UNITY_4_3 || UNITY_4_5 || UNITY_4_6”,替换为“#if UNITY_4_3 || UNITY_4_5 || UNITY_4_6|| UNITY_4_7”即可

展开阅读全文

没有更多推荐了,返回首页