我在代码中通过什么方法能够获取到这个脚本对应的预制件在工程中的路径?
如果已知uuid:Editor.remote.assetdb.unidToFspath(uuid)
如果是在编辑器中打开的预制:
let nodeUuids = Editor.Selection.curSelection(“node”);
let selNode = cc.engine.getInstanceById(nodeUuids[0]);
const uuid = selNode._prefab.asset._uuid;
Editor.remote.assetdb.unidToFspath(uuid)
1赞

