• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 622 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0048 秒)

181. 微信头像请求方式 [ 71%]

...ttpRequest = new Laya.HttpRequest(); httpRequest.once(Laya.Event.COMPLETE, this, (data)=>{ let byte = new Laya.Byte(data); byte.writeArrayBuffer(data, 4); let blob = new Laya.Browser.window.Blob([data], {type:'image/apng'}); let url = Laya.Browser.window.URL.createObjectURL(blob); showImg.skin = ...

来源: Laya_社区 发布时间: 20190430

182. destroy节点后,报错 [ 71%]

...;=0;i--){ obj= node.getChildAt(i); obj.removeSelf(); if(obj.name=='Guan'){ this.guans.push(obj); }else if(obj.name=='Fangkuang'){ this.fangkuangs.push(obj); }else if(obj.name=='Cylinder'){ this.cylinders.push(obj); }else{ console.log('recycle loser'); } } } 开心@me • 2019-11-21 10:51 2.1.1.1版...

来源: Laya_社区 发布时间: 20191119

183. 3D物理引擎有没有什么办法可以像unity的constraint那样锁住某些轴的旋转与位移么? [ 70%]

...是不可以挂载到3d场景的子节点上的,会报 Uncaught TypeError: this.owner.localToGlobal is not a function TypeError: this.owner.localToGlobal is not a function 这个错误. 如果可以用2D引擎挂载到3D物体上,也是可以解决我现在的问题,如果这个方面可以有解决...

来源: Laya_社区 发布时间: 20190714

184. 选择压缩混淆 JS发布项目,protobuf解析报错 [ 70%]

...ader.prototype.skipType = function(wireType) { switch (wireType) { case 0: this.skip(); break; case 1: this.skip(8); break; case 2: this.skip(this.uint32()); break; case 3: do { // eslint-disable-line no-constant-condition if ((wireType = this.uint32() & 7) === 4) break; this.skipType(wireType);...

来源: Laya_社区 发布时间: 20191202

185. 3D物理引擎实现类似constraint方法 [ 70%]

...,这个2d物理系统无法挂载到3d场景中,会报 Uncaught TypeError: this.owner.localToGlobal is not a function TypeError: this.owner.localToGlobal is not a function, 2d的实现似乎并不是3d忽略一个轴这样的方式,它们是不同的坐标系统,所以不通用,而我这边需要用...

来源: Laya_社区 发布时间: 20190714

186. 我想动态改自定义shader里的值,应该怎么写?? [ 70%]

....js应该怎么写??我这样写set的时候报错 Uncaught TypeError: this._setValue is not a function at CustomMaterial.setAlphaTestValue (CustomMaterial.js:34) at LayaAir3D.js:94CustomMaterial.setAlphaTestValue @ CustomMaterial.js:34 (anonymous) function CustomMaterial() {     CustomMateria...

来源: Laya_社区 发布时间: 20170526

187. 引擎遮罩报错 [ 70%]

...存 用了cacheAs 不起作用 zhengjiajia • 2017-09-13 20:05 @Monica: this.itemSpr.cacheAs = 'normal'; this.itemSpr.cacheAsBitmap = false; 为何这样设置 在报错的时候 发现这两个属性完全不正确呢 zhengjiajia • 2017-09-13 20:09 @Monica:this.itemSpr = new Laya.Sprite; this.it...

来源: Laya_社区 发布时间: 20170913

188. 发布Oppo小游戏屏幕适配bug [ 70%]

...好了。自问自答,希望有用。 Laya.stage.on(Laya.Event.RESIZE, this, this.resize);     static resize(): void { // let w = this.config.width; // let h = this.config.height; // let screen_wh_scale = Laya.Browser.clientWidth / Laya.Browser.clientHeight; // if (Laya.stage.scaleMode == Laya.S...

来源: Laya_社区 发布时间: 20200520

189. 使用官方文档中qrcode生成二维码的代码,打包APP后无效 [ 70%]

...te initCode() { var div: any = Laya.Browser.document.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div, { width: 100, height: 100 }); var url: string = this.URL; this.qrcode.makeCode(url); Laya.stage.once("click", this, this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya...

来源: Laya_社区 发布时间: 20180412

190. 代码无法编译 [ 70%]

...法编译了  也没看到那里出错 这个是什么原因 报错 The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten   附件 : --> 2020-07-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

来源: Laya_社区 发布时间: 20200703