cc.resources.load 报错

cc.resources.load(“test/站_4_下/1”, cc.Texture2D,function(err, spriteFrame) {
console.log(err, spriteFrame)
});

报错:
Error: Can not parse this input:{“path”:“test/站_4_下/1”,“requestType”:“path”,“bundle”:"",“preset”:“default”,“priority”:0}
at parse (url-transformer.ts:157)
at Pipeline.sync (pipeline.ts:219)
at preprocess (preprocess.ts:73)
at Pipeline._flow (pipeline.ts:262)
at Pipeline.async (pipeline.ts:257)
at AssetManager.loadAny (asset-manager.ts:457)
at Bundle.load (bundle.ts:239)
at eval (eval at parse (url-transformer.ts:157), :1:14)
at parse (url-transformer.ts:157)
at Pipeline.sync (pipeline.ts:219) undefined

中文路径问题

不是中文,E文也试过,一样.
cc.assetManager 的 bundles 为0,也就是没有 bundle
不知什么原因

补充,脚本是插件的场景脚本

好像是只有发布或者预览才能使用bundle

所以插件环境脚本,加载资源是没戏的,唉,谢谢,放弃了,选择方案2

请问方案2是什么,插件脚本加载不了资源有点难受

该主题在最后一个回复创建后14天后自动关闭。不再允许新的回复。