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

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

11. 动画不显示 [ 78%]

...             {                 m_Role.pos((Laya.stage.width - 27)/2,(Laya.stage.height - 75)/2);             }             else{                 m_Role.pos((Laya.stage.width - 14)/2 + 15,(Laya.stage.height - 75)/2);             }      ...

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

12. drawTextures BUG [ 76%]

...his._inner_drawTexture(tex, bmpid, pos[ipos++] + tx, pos[ipos++] + ty, tex.width, tex.height, null, null, 1.0, false);   附件 : --> 2022-06-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_z 赞同来自:...

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

13. drawToCanvas无法释放内存 [ 75%]

...s, ZX);function ZX():void{ var tex:Texture=new Texture(sp.drawToCanvas(sp.width,sp.height,0,0))             sp.graphics.clear()             sp.graphics.destroy()             tex.destroy()             tex.disposeBitmap()             tex.bit...

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

14. 使用drawToCanvas截图多次之后,再也无法再本次程序中截图显示。没有任何报错 [ 75%]

...private takePhoto(){ this._htmlC = this.gridBox.drawToCanvas(this.gridBox.width,this.gridBox.height,0,0); //获取截屏区域的texture this._tex = new Laya.Texture(this._htmlC); this._photo=new Laya.Sprite(); //将截屏的texture进行draw绘制并显示到舞台 this._photo.name="testtt"; this._...

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

15. 和原生Dom交互 · LayaAir3.4 · 引擎文档 · LAYABOX [ 74%]

...现这种效果。 var data = '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' + '<foreignObject width="100%" height="100%">' + '<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:40px">' + '<em>I</em> like ' + '<span style="color:white; te...

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

16. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 73%]

...t.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div,{ width:100, height:100 }); var url = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); function clickHandler(){...

来源: Laya2.0_文档 发布时间: 20210714

17. 2D精灵光 · LayaAir3.4 · 引擎文档 · LAYABOX [ 73%]

...tReceive = true; } // 生成一个矩形 private generateRectVerticesAndUV(width: number, height: number): Laya.Mesh2D { const vertices = new Float32Array(4 * 5); const indices = new Uint16Array(2 * 3); let index = 0; vertices[index++] = 0; vertices[index++] = 0; vertices[index++] = 0; vertices[inde...

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

18. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 73%]

...t.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div,{ width:100, height:100 }); var url:string = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); } private cl...

来源: Laya2.0_文档 发布时间: 20210715

19. Laya.loader.load 教程代码出错 [ 73%]

...img.graphics.drawTexture(txture);             img.size(txture.width,txture.height);         }            } }    运行后在 LayaSample.max.js 692行提示异常if (!tex.loaded){ tex.once("loaded",this,this._textureLoaded,[tex,args]);  编辑了好几次,这个代...

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

20. localRotationEulerY旋转位置错误 [ 73%]

...画如何设置绕自身中心点旋转,我这么设置_ani.pivot(_ani.width/2,_ani.height/2);不行,而且也没有锚点可以设置,如何实现 元素旋转后,所绑定的事件失效 unity的坐标和旋转转换到laya需要做什么运算 问题状态 最新活动: 2020-11-20 19:18 ...

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