以Component为“单元”(Prefab、GameObject也可以是“单元”):
先看例子:
— !u!xxx &yyy
zzz:
aaaaa
xxx为224,zzz为RectTransform,224这个类的ID对应类RectTransform。
30到46行,都是在描述这个文件内id(fileID)为224068254027818232的RectTransform
关于ClassIDReference,官方文档:ClassIDReference
文件内引用
这个是一个简单的预制,一个GO,带一个Rt,做成的预制。对应的yam如图所示。
Prefab,ID:100100000
GameObject,ID:1432671545625832
RectTransform,ID:224068254027818232
Prefab引着GameObject
GameObject引着RectTransform,同时存有预制ID
RectTransform,存有预制ID,同时存有GameObject ID