Unity5.x 资源加载Bug
来源:互联网 发布:淘宝包臀连衣裙 编辑:程序博客网 时间:2024/05/16 06:24
做一次做项目的时候, 将Unity4.x版本的游戏升级到Unity5.x后,资源打包需要从新做。(这块内容后期会写一个专门的题材),从新做完后,加载资源的时候界面都正常加载了,但是Editor 加载完界面报错,错误代码如下:
The referenced script on this Behaviour(GameObject ‘SystemChannelB’) is missing!
A script behaviour(script unknown or not yet loaded)has a different serialization layout when loading.(Read 32 bytes but expected 56 bytes) Did you #iddef UNITY_EDITOR a section
of your serialized properties in your scripts?
Prefab has mulitiple Transform components! removing them automatically would not be safe
GameObject(named ‘SystemChannelB’)references runtime script in scene file.Fixing!
经过了大概三天的调试,和查找,终于把则这个问题解决了。
就是SystemChannelB 这个组建其实是没有的,但是在打包前这个组建存在,打包后这个组建被删除了,所以加载的时候,资源会找这个组建,导致报错如上。
解决方法:
将包含这个组建的预制体里面的这个组件删除,然后保存,然后冲洗打包成AssetBundle 。这样就可以解决问题。
百度和google 了很多这样类似的问题, 再次提高类型解决方案
http://answers.unity3d.com/questions/997644/gameobject-references-runtime-script-in-scene-file.html?page=3&pageSize=5&sort=votes
希望可以帮到大家。
- Unity5.x 资源加载Bug
- Unity5.x 资源打包和加载
- unity5.x的bug
- Unity5.X AssetBundle加载
- Unity5.x 提取资源软件
- unity5.X AssetBundle资源打包(一 )
- Unity5.X AssetBundle检测资源更新
- Unity5.X打包与加载AssetBundle
- unity5.x assetbundle打包和加载
- Unity5.x新依赖打包及加载
- unity5.3.5 UnityWebRequest 循环运行资源未能释放的bug
- 基于Unity5.x版本资源内存管理方案
- Mac OS X 10.9 文件(资源)选取窗长时间加载bug的修复
- Unity教程之-Unity5.x版本AssetBundle加载研究
- Unity5.x AssetBundle打包和加载深入分析
- Unity5.X AssetBundle加载(增加路径处理)
- Unity5.x 加载Assetbundle shader丢失问题记录
- Cocos2d-x 资源加载进度条
- du、df统计的硬盘使用情况不一致的情况解析
- 我来看看zhel
- 防止ViewPager中的Fragment被销毁的方法
- 发布-订阅消息模式
- linux mips启动分析
- Unity5.x 资源加载Bug
- ionic Lab同时并排预览ios和android的界面
- 《Inside VCL(深入核心——VCL架构剖析)》.李维 三
- HDOJ -- 1203 I NEED A OFFER!
- 【FL studio12】神一样的插件-Pitcher
- 使用HiKey进行开发
- Android中利用StickyListHeaders实现listView的悬浮头
- 拓扑 hdu 5695(Gym Class)
- 我也想写博客了