Skip to content

Commit

Permalink
perfab导出引用bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jsjgameer committed Aug 21, 2023
1 parent 38f6e90 commit 8ddf4c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Export/resoure/NodeMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,12 @@ public void getRefNodeId(List<OriderIndex> nodeList, List<string> outIndex)
root = root.transform.GetChild(nodeList[0].perfabIndex).gameObject;
}
}
if (!this.nodeMaps.ContainsKey(root))
if (this.refMap.ContainsKey(root))
{
root = root.transform.parent.gameObject;
OriderIndex oriderIndex = new OriderIndex();
OriderIndex oriderIndex = nodeList[0];
oriderIndex.childIndex = 0;
oriderIndex.perfabIndex = 0;
nodeList.Insert(0, oriderIndex);
}
outIndex.Add(this.getGameObjectId(root));

Expand Down

0 comments on commit 8ddf4c9

Please sign in to comment.