mirror of
https://gitee.com/abc126655/finder-refferenct3
synced 2025-04-17 03:58:42 +00:00
fixed
This commit is contained in:
parent
75d269e6e9
commit
a49408761d
8
dist/main.js
vendored
8
dist/main.js
vendored
@ -387,7 +387,13 @@ exports.methods = {
|
|||||||
}
|
}
|
||||||
// 预制体资源
|
// 预制体资源
|
||||||
else if (type === 'cc.Prefab') {
|
else if (type === 'cc.Prefab') {
|
||||||
const uuid = source[source.length - 1]['asset']['__uuid__'];
|
let uuid = undefined;
|
||||||
|
for (let i = source.length - 1; i >= 0; i--) {
|
||||||
|
if (source[i]['asset']) {
|
||||||
|
uuid = source[i]['asset']['__uuid__'];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
nodeTree['__type__'] = 'cc.Prefab'; // 类型
|
nodeTree['__type__'] = 'cc.Prefab'; // 类型
|
||||||
nodeTree['__uuid__'] = uuid; // uuid
|
nodeTree['__uuid__'] = uuid; // uuid
|
||||||
// 从根节点开始读取
|
// 从根节点开始读取
|
||||||
|
Loading…
x
Reference in New Issue
Block a user