cocos3d中如何把微信canvas转texture呢?

this.texture.mipmaps = this.openDataContext.canvas;
let spriteFrame =new cc.SpriteFrame();
spriteFrame.texture = this.texture;
this.sprite.spriteFrame= spriteFrame;
我这样显示不出来

let asset = new cc.ImageAsset(this.openDataContext.canvas);
this.texture = asset._texture;
let spriteFrame =new cc.SpriteFrame();
spriteFrame.texture = this.texture;
this.sprite.spriteFrame= spriteFrame;
搞定了了

Release版本我弄到微信小游戏里面有点卡呢

我要怎么模拟能出现卡的现象

我用debug版在手机浏览器和电脑上都还好能流畅,然后我在微信用了分包。有点卡

扫一扫试试

没有权限,我提交了申请测试权限,你看下

通过了老大。玩一下呢。哎我在头痛软著的,还有大把时间优化

通过了大佬。
看看吧

我是说的游戏过程中有点卡

还有就是音频播放也有点问题。在手机浏览器和普通的浏览器一切ok,打包到微信上有些就播发一卡一卡然后没声音

还有今天提交的微信时候微信提示我cocos creator 3d engine 更新了,让更新工具弄?可是我已经用的1.0.2了

说的是微信开发者工具把

1赞

你这里的道具和粒子有做复用吗,建议操作区域扩大一点,点击的地方在手机上太精细了,有的时候还以为这个也是卡的

你好。这里不应该用 _texture

const texture = new Texture2D();
texture.image = imageAsset;
1赞