1.// 用绝对路径加载设备存储内的资源,比如相册
var absolutePath = “/dara/data/some/path/to/image.png”
cc.loader.load(absolutePath, function () {
// Use texture to create sprite frame
});
这种贴图资源如何释放?使用cc.loader.release(texture); 释放无效
2.还有网络资源如何释放?
cc.loader.load(“http://www.xxx.com/xxx.png”, function (err, texture) {
// Use texture to create sprite frame
});