查找节点

cocos creator 如何

不通过路径如何查找任意的节点

急求

node.getchildbyname(‘name’) or node.getChildByUuid(uuid)

https://docs.cocos.com/creator/api/zh/classes/Node.html#getchildbyuuid

要是我查找不同父节点下的子节点也可以?

通过递归将所有的子节点绑定一遍,之后在根据你的绑定规则拿

我还不如直接用cc.find。。。