强烈要求Widget组件能够同时支持百分比和像素的对齐,意味着两个算法的迭加。
没卵用的,马上3.0出来,你又该说以后项目从3.0开始
求助, 这里 cc.textureCache 被移除了, 那么如何查看内存中缓存的纹理呢。
链接: https://pan.baidu.com/s/1e5HuzdIFLqlYv3wkL-qsfw 密码:7nk4
看看这个demo
1:label 宽度问题
2:打包微信小游戏 运行 RichText 报错
暂时的解决方案是在zip文件的loader函数中直接修改Asset
function zipLoader(item, callback) {
const bytes = item.content;
const zipFile = someFunction(bytes);
const fakeZipAsset = item._owner; // fakeZipAsset is cc.Asset
fakeZipAsset.zip = zipFile;
callback(null, null);
}
然后在加载的回调函数中就会拿到这个cc.Asset
function someCallback(err, resource) {
const fakeZipAsset = resource;
const zipFile = fakeZipAsset.zip
// then do some things with zipFile
}
如图。没有手动设置cc.test.
这个LOG不应该出来