Missing (Mono Script), Missing Prefab
开始研究Google Cardboard SDK,下载了一份gvr-unity-sdk,用Unity打开里面的Samples: CastleDefense,导出XCode项目在iPhone上面运行,出现如下错误:
You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
修改完上述错误再运行又出现如下错误:
The referenced script on this Behaviour (Game Object 'ExplosionMobile') is missing!
返回Untiy项目,看到Assets/Game/Prefabs/Cannon Ball这个Prefab里面的ExplosionMobile下面挂的脚本丢了
在检查了Edit->Project Settings->Editor里面的Version Control设置为Visual Meta Files,Asset Serialization设置为Force Text(如果你的项目设置不是这样,需要修改成这样).
在项目文件目录下选中 Cannon Ball.prefab 这个文件,用文本编辑器打开,并搜索ExplosionMobile:
从上图可以看到m_Name: ExplosionMobile这一行上面有m_Component的数据,- 4:为Transform,- 114:为Script,即为丢失的Script,复制其后面的fileID数值11463042,并在该文件中搜索11463042,除去当前这个位置,另外一个位置,就是该Script的数据信息:
看--- !u!114 &11463042这个模块下的数据,m_Script这一行里面有一个guid,数值039587c051912eb4ead9e58344c5f3ce即为丢失的Script的guid,该guid是Unity自动生成并保存在.meta文件里面的。
在本地文件系统中搜索039587c051912eb4ead9e58344c5f3ce,结果如下:
往下拉寻找*.cs.meta,发现如下:
点击其中一个ParticleSystemMultiplier.cs.meta,在上层文件夹中显示出来,发现是Unity的Standard Assets: ParticleSystems里面的脚本:
在项目中导入ParticleSystems Package后,丢失的代码即刻恢复了:
到此,丢失的Script找到了。
Missing Prefab也是类似的操作,用文本编辑器打开丢失Prefab的*.unity这个场景文件,然后搜索Missing Prefab,通过fileID在文件中查到Prefab的数据信息,分析该Prefab数据中包含哪些Component,并手动重建一个,丢失的资源文件,则根据guid在项目目录下查找。
本文为原创,如果转载请注明出处
Missing (Mono Script), Missing Prefab的更多相关文章
- 升级AutoMapper后遇到的“Missing map”与“Missing type map configuration”问题
前几天发现 AutoMapper 3.3 的一个性能问题(详见:遭遇AutoMapper性能问题:映射200条数据比100条慢了近千倍),于是将 AutoMapper 升级至最新的 5.1.1 看是否 ...
- Missing Number, First Missing Positive
268. Missing Number Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find th ...
- Unity 编辑器(移除missing)
移除 Missing(Mono Script) ` private static void FindMissingReferences() { GameObject[] pAllObjects = ( ...
- file:///Users/xmg/Desktop/xiangmu~Bsbdejie/BaisibudejieTheSecondtime/BaisibudejieTheSecond/BaisibudejieTheSecond/AppDelegate.m: warning: Missing file: /Users/xmg/Desktop/xiangmu~Bsbdejie/BaisibudejieT
warning: Missing file: is missing from working copy fatal error: file '-.h' has been modified since ...
- Type.Missing和System.Reflection.Missing.Value
Type.Missing https://msdn.microsoft.com/en-us/library/system.type.missing(v=vs.110).aspx Missing.Val ...
- fedora 28 missing PROG bison
yum install bison Missing PROG dlltool Missing PROG flex Missing PROG mt
- (转)[Unity3D]BuildPipeline.PushAssetDependencies 打包依赖包,优化UI Prefab的资源引用加载(坑爹之处)
转自:http://blog.csdn.net/chiuan/article/details/39040421#reply 1:长话短说,UI Prefab中一般会交叉引用Atlas,那么打包时候我们 ...
- 优化脚本性能 Optimizing Script Performance
This page gives some general hints for improving script performance on iOS. 此页面提供了一些一般的技巧,提高了在iOS上的脚 ...
- Reactor by Example--转
原文地址:https://www.infoq.com/articles/reactor-by-example Key takeaways Reactor is a reactive streams l ...
随机推荐
- SNMP
net-snmp 了解snmp程序最好的工具,snmpwalk和snmptable都是关键命令,举例: snmptable -v 2c -c public X.X.X.X ifTable 显示网络接口 ...
- Android Monkey测试(转载)
Monkey是一款通过命令行来对我们APP进行测试的工具,可以运行在模拟器里或真机上.它向系统发送伪随机的用户事件流,实现对正应用程序进行压力测试. 官方介绍 :https://developer.a ...
- WAV文件头相关资料
http://stackoverflow.com/questions/6284651/avaudiorecorder-doesnt-write-out-proper-wav-file-header h ...
- git 常用命令及解析 由浅入深
笔者用的是windows系统,不过并没有什么影响. Git 分布式版本控制系统. 为了让初学git的人明白git是干什么的,有什么意义 笔者觉得先来介绍git作为版本控制器是怎么运作的会让大家对后边 ...
- Linux:-防火墙iptables如何个性化定制?
身份标签/usr/local/etc/identity,主脚本iptables.sh,附属目录functions/iptables.d ├── iptables.sh ├── functions│ ...
- Kafka 0.9+Zookeeper3.4.6集群搭建、配置,新Client API的使用要点,高可用性测试,以及各种坑 (转载)
Kafka 0.9版本对java client的api做出了较大调整,本文主要总结了Kafka 0.9在集群搭建.高可用性.新API方面的相关过程和细节,以及本人在安装调试过程中踩出的各种坑. 关于K ...
- java中post时中文乱码
http://blog.chinaunix.net/uid-12348673-id-3335300.html 设置流的编码,就避免了乱码 public static String post(Strin ...
- OHNL
先了解一下OGNL的概念 OGNL的全名称Object Graph Navigation Language.全称为对象图导航语言,是一种表达式语言.使用这种表达式语言,你可以通过某种表达式语法,存取J ...
- android listview simpleAdaper
xml (主) <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns: ...
- No module named 'urllib2'
import urllib2 response = urllib2.urlopen('http://www.baidu.com/') html = response.read() print html ...