[LayaNative 2.0]3D文本纹理demo问题
使用3d文本纹理的demo案例的代码时,微信小游戏运行正常,但是通过Android studio发布Android包就会报这个错误。使用Layabox直接扫描右侧的二维码真机调试也是如此。
TypeError: this.cxt.fillText is not a function
this.cxt.fillText(text, this.cav.width / 2, this.cav.height);
^^
TypeError: this.cxt.fillText is not a function
at TextureManager.getWebCharBmp (http://192.168.101.10:8901/bin ... 855:22)
at TextureManager.getTextureByText (http://192.168.101.10:8901/bin ... 838:25)
at BulletPointTime.setTexture (http://192.168.101.10:8901/bin ... 892:57)
at BulletPointController.updateState (http://192.168.101.10:8901/bin ... 678:37)
at list.forEach.element (http://192.168.101.10:8901/bin/js/bundle.js:1083:33)
at Array.forEach (<anonymous>)
at EventList.publish (http://192.168.101.10:8901/bin/js/bundle.js:1082:23)
at RoomData.publish (http://192.168.101.10:8901/bin/js/bundle.js:1127:22)
at RoomData.startCD (http://192.168.101.10:8901/bin/js/bundle.js:8139:18)
at GameManager.buyBullet (http://192.168.101.10:8901/bin/js/bundle.js:10231:26)
TypeError: this.cxt.fillText is not a function
this.cxt.fillText(text, this.cav.width / 2, this.cav.height);
^^
TypeError: this.cxt.fillText is not a function
at TextureManager.getWebCharBmp (http://192.168.101.10:8901/bin ... 855:22)
at TextureManager.getTextureByText (http://192.168.101.10:8901/bin ... 838:25)
at BulletPointTime.setTexture (http://192.168.101.10:8901/bin ... 892:57)
at BulletPointController.updateState (http://192.168.101.10:8901/bin ... 678:37)
at list.forEach.element (http://192.168.101.10:8901/bin/js/bundle.js:1083:33)
at Array.forEach (<anonymous>)
at EventList.publish (http://192.168.101.10:8901/bin/js/bundle.js:1082:23)
at RoomData.publish (http://192.168.101.10:8901/bin/js/bundle.js:1127:22)
at RoomData.startCD (http://192.168.101.10:8901/bin/js/bundle.js:8139:18)
at GameManager.buyBullet (http://192.168.101.10:8901/bin/js/bundle.js:10231:26)
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
Aar0n
赞同来自: