2.4.3在CC_PREVIEW运行时可获取uuid对应fspath(url, path, nativeUrl, texturepath, _textureFilename, sprite, spriteFrame, texture, texture2d)的简单插件。

用法,把这个插件释放到 packages中,然后在CC_PREVIEW里面用代码通过XMLHttpRequest访问就可以得到一行文本,即uuid对应的资源路径。

http://localhost:9999/?uuid=[uuid]

例如

http://localhost:9999/?uuid=0275e94c-56a7-410f-bd1a-fc7483f7d14a

输出示例

C:\CocosDashboard_1.0.10\resources.editors\Creator\2.4.3\resources\static\default-assets\image\default_sprite_splash.png

注意:不支持多开Creator工程,因为里面开了一个端口9999的服务器,没有处理端口冲突的问题。

remote_asset_db_2021-08-03_19-33-22-14.zip (327.0 KB)

老铁666