Is there a way to make Cocos Studio use relative resource filenames?

HI there

I am implementing multi-resolution support by having the three primary resource sizes, sd, hd, hd2. But the issue comes in when using Cocos Studio to add the sprites.

If my folder structure is the following,

Resources/
–assets/
----sd/screen.png
----hd/screen.png
----hd2/screen.png

If I add a background image as a sprite, for example, Is there a way to make the sprite use just “screen.png” in Cocos Studio, and then when I load the game I can set the search path to whichever directory I need at the time?

Currently is seems to use the full path, so even if I use the “hd” image in Cocos Studio, then set the “sd” search path in the code, it still uses the “hd” image.

If this is not the intended usage of Cocos Studio, then how do I position elements and set their images, while still being able to choose which resource size to load at runtime?

Thanks in advance!

Hello, resources of Studio are saved in relative path of the folder “cocosstudio”. One solution is to use only one set of resources, and do not distinguish them with the root directory such as “sd、hd、hd2”.

After the projects being published, replace resources in the publishing directory.

Another solution is to customize exported data formats. For reference: http://www.cocos.com/doc/article/index?type=Cocos%20Studio&url=/doc/cocos-docs-master//manual/studio/v4/chapter3/Extend/CustomExport/en.md