Hello,
I am developing a cross platform game template using CocosCreator + typescript . I need to allow user to choose theme from multiple theme and when user select any theme then only download the needed resources from server. I don’t want app to be restart after download resources game must run directly.
I have used below code to load resource from server.
var remoteUrl = "http://www.mywebsite.com/res/background/background.png";
cc.loader.load({url: remoteUrl, type: 'png'},(err , texture) => {
if(err) {
cc.error("Error : "+ (err.message || err));
}
else {
// I want to store texture as .png in native plateform.
}
});
But i don’t know how i can store/save files into application resources in native platfrom Android and IOS.
So it will be great if someone can have any suggestions on it.
Thanks in advance.