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

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”即可

相关推荐
©️2020 CSDN 皮肤主题: 书香水墨 设计师:CSDN官方博客 返回首页