插件开发里怎么根据uuid获取node对象

cc.engine.getInstanceById(uuid);
2.0.2里这个函数不存在啊
有谁知道吗?

搞定了 要在场景脚本里才行

怎么弄得?分享一下。

说了啊 场景脚本里调用就可以了

HelloWorld.js:42 Uncaught TypeError: Cannot read property ‘getInstanceById’ of undefined

【场景脚本】里
你看下这个
https://docs.cocos.com/creator/manual/zh/extension/scene-script.html

1赞