mirror of
https://gitee.com/abc126655/finder-refferenct3
synced 2025-04-12 01:31:04 +00:00
3.0 bug fixed
This commit is contained in:
parent
eced6e58d8
commit
76a62b6678
@ -368,7 +368,13 @@ export const methods: { [key: string]: (...any: any) => any } = {
|
|||||||
}
|
}
|
||||||
// 预制体资源
|
// 预制体资源
|
||||||
else if (type === 'cc.Prefab') {
|
else if (type === 'cc.Prefab') {
|
||||||
const uuid = source[source.length - 1]['asset']['__uuid__'];
|
let uuid: string | undefined = 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