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

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

1251. 关于HTMLCanvas对象的释放问题 [ 84%]

...age  dispose,内存也不见释放。代码如下: var kk1:HTMLCanvas = this.HistoryArray.pop()[0];                var img:Image = new Image();                 img.src = kk1.toDataURL();                 img.dispose();   详见附件。这次不会那么强大了 2...

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

1252. 释放资源报错 [ 84%]

...rite3D.__proto.destroy (laya.d3.js:43737)   发现           if (this._cacheRootBone){             this._cacheRootBone.transform.off(/*laya.events.Event.TRANSFORM_CHANGED*/"transformchanged",this,this._boundChange); 这里的this._cacheRootBone非空,但是上面transform是...

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

1253. Tiled Map 为啥始终显示在最上面,求解 [ 84%]

...后续添加的图元。 求解。。。。 贴上代码: // 2D 场景 this.tMap = new Laya.TiledMap(); var viewRect:Laya.Rectangle = new Laya.Rectangle(); this.tMap.createMap("res/TiledMap/orthogonal-test-movelayer.json",viewRect,Laya.Handler.create(this,this.onMapLoaded)); this.tMap.scale = 1; ...

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

1254. 3D文本纹理demo问题 [ 84%]

...abox直接扫描右侧的二维码真机调试也是如此。  TypeError: this.cxt.fillText is not a function             this.cxt.fillText(text, this.cav.width / 2, this.cav.height);                      ^^                                                  ...

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

1255. WebGL模式下用遮罩实现圆形头像会有警告出现 [ 84%]

...ERATION: bindTexture: attempt to bind a deleted texture   代码示例: this.img = new Laya.Image(); this.img.loadImage("url"); const mask = new Laya.Sprite(); mask.graphics.drawCircle(75, 75, 75, "#ffffff"); this.img.mask = mask; this.img.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.st...

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

1256. LayaBox 出错啦,请把此信息截图给研发商 SimpleSingletonList [ 84%]

...            }                          this.length--;             if (index!==this.length){                 var end=this.elements[this.length];                 // @xd added, 添加end是存存在判断       ...

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

1257. 为什么pannel里显示两张同样的图片显示不出来,只能显示一张 [ 84%]

...UI extends ui.LevelUI { private panel:Laya.Panel; constructor() { super(); this.panel = new Laya.Panel(); this.panel.size(720, 1136); this.panel.vScrollBarSkin = "comp/vscroll.png"; Laya.stage.addChild(this.panel); var img:Laya.Image = new Laya.Image(); img.skin = "res/GameBG2.jpg" this.panel.addChi...

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

1258. Animation 的createFrames 使用已经加载的图集缓存动画失败 [ 84%]

...码大致如下: Laya.loader.load('player/player.json',Laya.Handler.create(this, this.onLoaded),null); ----onComplate: Laya.Animation.createFrames(['player-left.png'], "walk-left"); 2016-06-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

1259. 3d 设置相机正交投影,在使用3d转2d 坐标转换不成功 [ 84%]

...;1 __proto.worldToViewportPoint=function(position,out){ Matrix4x4.multiply(this._projectionMatrix,this._viewMatrix,this._projectionViewMatrix); this.viewport.project(position,this._projectionViewMatrix,out); var outE=out.elements; if (out.z < 0.0 || out.z > 1.0){ outE[0]=outE[1]=outE[2]=NaN; }...

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

1260. 请问如何获取触屏上两个或者更多位置的坐标 [ 84%]

...   if (touches && touches.length == 2) {                 this.preRadian = Math.atan2(                     touches[0].stageY - touches[1].stageY,                     touches[0].stageX - touches[1].stageX);                 Laya.stage.on(Event.MOUSE_MOVE, th...

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