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

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

581. [LayaAirIDE3]3.3.1 UI点击区域异常,mouseThrough属性失效 [ 66%]

...the target object or misses all objects. * When not penetrable, the node's width and height define the mouse collision area (a non-penetrable rectangular area). If the rectangular collision area does not meet the requirements, you can use the drawing area of the hit area as the collision area. The h...

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

582. List组件拖动浏览时item会出现重叠的现象 [ 66%]

...st.repeatX = 1; list.repeatY = 4; // list居中显示 list.x = (Laya.stage.width - ListDataSourceItem.WID) / 2; list.y = (Laya.stage.height - ListDataSourceItem.HEI * list.repeatY) / 2; // 使用但隐藏滚动条,滚动条水平滚动 list.vScrollBarSkin = ""; // list.vScrollBarSkin 滚动条垂直...

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

583. 2D性能优化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 66%]

.../monkey2.png",0,0,0,0,Laya.Handler.create(this,function() { console.log(sp.width,sp.height); })); Laya.stage.addChild(sp); loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 直接调用size设置: Laya.loader.load("res/apes/monkey2.png",Laya.Handler.create(this,func...

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

584. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 66%]

... list.itemRender = Item; list.x = 15; list.y = 60; list.height = 470; list.width = 542; list.spaceY = 20; list.vScrollBarSkin = ""; list.repeatX = 1; list.repeatY = 10; list.selectEnable = false; list.renderHandler = new Handler(this, function(cell, index) { cell.setImg(cell.dataSource); }); this.ro...

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

585. 缓动-逐字缓动 [ 66%]

... Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() {...

来源: Laya2.0_示例 发布时间: 20260303

586. Templet资源删除不掉 [ 66%]

...    Laya.stage.addChild(swordman);              swordman.pos(width / 2,  height / 2);             Laya.timer.frameOnce(100, this, unload);         }         private function unload() : void         {             swordman.destroy();           ...

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

587. .ui画界面关于屏幕尺寸变化时内容如何居中 [ 66%]

...自: 你在代码中添加这个UI页面的时候就让它的x=(Laya.sta.width-this.width)/2自己计算下不就好么 2018-03-23 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 kaiqiw945 相关问题 【屏幕适配】在LayaAir上面...

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

588. 2.3.0beta 各种bug [ 65%]

... if (rect[2] == -1)                     rect[2] = Math.ceil((cri.width + lineWidth * 2) * this.lastScaleX);             }             var dt_w = w != 0 ? w : 1;             var dt_h = h != 0 ? h : 1;             if(rect){                 dt_w = rect[2] != 0 ...

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

589. emoji表情文字乱码 [ 65%]

...tr);             var tHTMLChar=words[i]=new HTMLChar(w[i],size.width,size.height||style.fontSize,style);             if (this.href){                 var tSprite=new Sprite();                 this.addChild(tSprite);               ...

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

590. HScrollBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 65%]

...his.hScrollBar.skin = "res/ui/hscroll.png"; //设置宽度 this.hScrollBar.width = 400; //设置位置 this.hScrollBar.pos(150, 170); //最低滚动位置数字 this.hScrollBar.min = 0; //最高滚动位置数字 this.hScrollBar.max = 100; //滚动变化事件回调 this.hScrollBar.changeHandler = n...

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