在scene-script中,Editor.assetdb(main) 部分的API都调用不了,是有什么限制吗?应该在哪里才能调用?
@panda @jare
scene 部分只能用 renderer 的 API http://www.cocos.com/docs/creator/extension/api/asset-db/asset-db-renderer.html
或者在 main 的 API 调用前加上 remote,例如 Editor.assetdb.remote.fspathToUuid(…)