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

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

1481. 使用Image的时候,资源引用计数一直增加,导致清理不掉 [ 81%]

...AutoBitmap类_setDrawGridCmd()函数,修改内容如下: if(lastOne == this._drawGridCmd){this._one = newcmd;}  改成 if(lastOne == this._drawGridCmd){ lastOne.recover(); this._one = newcmd;} 渲染命令没有回收导致。 2023-09-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个...

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

1482. 关于多点触控e.touches问题 [ 81%]

关于多点触控e.touches问题 Laya.stage.on(Laya.Event.MOUSE_DOWN, this, onCtrlMoveRockerTouchDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, onCtrlMoveRockerTouchDown);     function onCtrlMoveRockerTouchDown(e) {    console.log("onCtrlMoveRockerTouchDown()");    this.ctrlMoveRockerPosX...

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

1483. 关于Panel组件橡皮筋效果无效 [ 81%]

关于Panel组件橡皮筋效果无效 this._list = new Laya.Panel(); listParent.addChild(this._list); this._list.vScrollBarSkin = ""; this._list.vScrollBar.elasticDistance = 100; 我设置了vScrollBar的elasticDistance 属性,但是并没有橡皮筋的效果。可是List组件又可以,这...

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

1484. 火狐浏览器运行出现花屏 [ 81%]

... 赞同来自: Error: WebGL warning: Exceeded 16 live WebGL contexts for this principal, losing the least recently used one. Error: WebGL warning: texSubImage2D: Texture has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow. Error: WebGL warning: texSu...

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

1485. 为啥 增加 Text ,drawcall 暴增 ?????????????? [ 81%]

...ui_imgs/img_10103.png"; fish.scoreItem.sizeGrid = '0,10,0,10'; var price = this.getFishVal('10001', 3); var length = String(price).length; var w = length * 16 + 15 + 40; fish.scoreItem.width = w; fish.scoreItem.x = fish.getBox().x - fish.scoreItem.width/2; fish.scoreItem.y = fish.getBox().y - fish.s...

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

1486. 陀螺仪和加速计使用问题 [ 81%]

...仪和加速计使用问题 Laya.Gyroscope.instance.on(Laya.Event.CHANGE,this,this.onDeviceorientation);  Laya.Accelerator.instance.on(Laya.Event.CHANGE,this,this.onMotoin); 官网陀螺仪和加速计例子中的上面两句运行时都报 Cannot read property 'instance' of undefined 的错误 附...

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

1487. 动画-图集动画 [ 81%]

...ya.stage.bgColor = "#232628"; Laya.loader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS); })(); function createAnimation() { var ani = new Animation(); ani.loadAtlas(AniConfPath); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ani.in...

来源: Laya_示例 发布时间: 20260303

1488. 脚本组件继承于 Laya.Script。 其中的_update方法,多长时间会调用一次? 可以设置调用时间吗? [ 81%]

... * @param delay 延迟时间(单位为毫秒)。 * @param caller 执行域(this)。 * @param method 定时器回调函数。 * @param args 回调参数。 * @param coverBefore 是否覆盖之前的延迟执行,默认为 true 。 */ once(delay: number, caller: any, method: Function, args?: Array&lt...

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

1489. app 的预加载问题 [ 81%]

...n.json","type":Loader.ATLAS}, ]; Laya.loader.load(resarray, Handler.create(this, this.preloadLoaded), Handler.create(this, this.onProgress,null,false)); 这个时候这个资源是通过app本地加载还是网上加载的? 2.dcc 有之前安装到手机上的app (a版本),后面服务器又...

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

1490. list的render复用问题 [ 81%]

...拖第五个item也叫item0, 通过list.selectHandler = new Laya.Handler(this, this._OnSelect); function _OnSelect(){ //选中的render上加个选中框, var selection = this.visualizeList.selection;         selection.addChild(this.m_CenterDiv.imgSelect); } 第五个render也会有选...

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