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

大约有 1,499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0148 秒)

1341. 修改了Scene下的WebGL参数导致渲染3D对象出现局部透明 [ 46%]

...ns( window.screen.orientation.angle, this.passThroughCamera.orientation ); if (combinedOrientation !== this.combinedOrientation) { this.combinedOrientation = combinedOrientation; this.gl.bufferData( Laya.WebGLContext.ARRAY_BUFFER, this.f32TextureCoords[this.combinedOrientation], Laya.WebGLContext.ST...

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

1342. Spine 间隔一段时间卡顿5000毫秒左右,期间GPU占用极高, Demo已上传 [ 46%]

...("ludo_ufo_feixing", true); }); ufo.on(Laya.Event.LABEL, this, (e) => { if (e.name == "xiaoshi") { ufo.offAllCaller(this); // ufo.removeSelf();   } });  })); }  genSpine(url, handler: Laya.Handler) { var templet = new Laya.SpineTemplet(Laya.SpineVersion.v4_0); templet.on(Laya.Event.COMPLETE, h...

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

1343. laya.sprite精灵无缝拼接地图,会出现黑线跟白线,使用laya的2.0.1beta版本 [ 46%]

....loader.getRes(this.name); this.texture = texture; }  clearImage(): void{ if (this.name != "") { this.isShow = false; Laya.Loader.clearTextureRes(this.name); Laya.Loader.clearRes(this.name); this.name = ""; } }  }   附件 : --> 2019-03-15 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

1344. box2d引擎报错问题 [ 46%]

... this.owner) } onTriggerEnter(other: any, self: any, contact: any): void { if (other.label === "cloud") { Laya.Tween.clearAll(this._sp) let effect: Laya.Animation = Laya.Pool.getItemByCreateFun("deathEffect", this.createEffect, this); effect.pos(this._sp.x, this._sp.y); this._sp.parent.addChild(effe...

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

1345. JSON文件加载成功后,怎么解析成Object对象 [ 46%]

..."=================="); } private function traceMsg(msg:String = ""):void { if ( msg != null ) { txt.text += msg + "\n"; txt.scrollY = txt.maxScrollY; } } } } 输出信息: ------------------------- 0 Chen 加载: res/json/config.json readJsonFinish - 加载成功: res/json/config.json ...运行到 J...

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

1346. 在安卓手机上drawToTexture不能正确返回纹理对象,是HTMLCanvas [ 46%]

... Laya.HTMLCanvas let tex = htmlCanvas.getTexture() as Laya.RenderTexture2D if (tex) { let u8 = tex.getData(0, 0, tex.width, tex.height) let u = new Uint8Array(u8.length) let len = u8.length / 4 let i = 0 for (let x = len; x >= 0; x--) { for (let y = 0; y < 4; y++) { u[i * 4 + y] = u8[x * 4 + y...

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

1347. 内存释放问题 [ 46%]

...oid { let obj: Object = ResUIModuleManager.poolModulResDic.get(className); if (!obj || !obj["resNames"]) return; let moduleNames: string[] = obj["resNames"]; let muduleName: string; let path: string; for (let i = 0, len = moduleNames.length; i < len; i++) { muduleName = moduleNames[i]; let curMem...

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

1348. 关于WebGL矢量图的遮罩问题 [ 46%]

...罩会显示错误 //关闭WebGL, 遮罩会显示正确 let isWebGL = true if (isWebGL) { Laya.init(1024, 1024, Laya.WebGL); } else{ Laya.init(1024, 1024); } //等待可调试 Laya.timer.once(1000, null, ()=>{ let mask = new Laya.Sprite() let sprite = new Laya.Sprite() sprite.mask = mask Laya.sta...

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

1349. UI弹窗 · LayaAir3.0文档 · LAYABOX [ 46%]

...IDTH + "," + this.DIALOG_HEIGHT; this.dialog.show(); } onDestroy(): void { if (this.dialog) { this.dialog.close(); } } } Copyright ©Layabox 2022 all right reserved,powered by LayaAir Engine更新时间: 2023-03-03 17:33:52 img{cursor:pointer}

来源: Laya3.0_文档 发布时间: 20230303

1350. 可以帮我测试一下吗? 使用mask的场景,放着就会出现记忆体用完的讯息? [ 46%]

...ion : 0 }; Laya.timer.frameLoop(1,this,()=> { this.infos.rotation += 1; if (this.infos.rotation >= 360) this.infos.rotation -= 360; this.IM_TURNTABLE.rotation = this.infos.rotation; this.VIEW_TURNTABLE.rotation = this.infos.rotation; }); } } 附件 : --> testMask.zip 2018-07-20 添加评论 ...

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