The referenced script (Unknown) on this Behaviour is missing!

查找原因

(1)

加载 AssetBundle 的时候报错,然后在 AssetBundle 中包含的资源查找资源中引用的 guid,例如

查找文件 Timeline_TestA.playable

The referenced script (Unknown) on this Behaviour is missing!

一个区域开始是

The referenced script (Unknown) on this Behaviour is missing!

然后是类型名字

The referenced script (Unknown) on this Behaviour is missing!

然后是详细信息

The referenced script (Unknown) on this Behaviour is missing!

根据类型 id

The referenced script (Unknown) on this Behaviour is missing!

查找

https://docs.unity3d.com/Manual/ClassIDReference.html

Classes defined from scripts
will always have class ID 114 (MonoBehaviour).

参考

http://www.xuanyusong.com/archives/3727

 

(2)

脚本类型都是 114

will always have class ID 114 (MonoBehaviour).

(3)

根据名字,在编辑器中查找

例如 m_Name: Recorded ,编辑器中显示的就是 Recorded

The referenced script (Unknown) on this Behaviour is missing!

编辑器中显示

The referenced script (Unknown) on this Behaviour is missing!

再例如

The referenced script (Unknown) on this Behaviour is missing!

编辑器中显示

The referenced script (Unknown) on this Behaviour is missing!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

相关文章: