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

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

331. 在微信小游戏中使用list,兼听不到mouseHandler跟selectHandler。 [ 62%]

...der = Item;   list.repeatX = 1; list.repeatY = 4;   list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2;   // 使用但隐藏滚动条 list.vScrollBarSkin = "";   list.selectEnable = true; list.selectHandler = new Handler(this, onSelect);   list.renderHa...

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

332. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 62%]

...a.isWXPosMsg = true; //根据IDE设置初始化引擎 Laya.init(GameConfig.width, GameConfig.height,false); Laya.stage.scaleMode = GameConfig.scaleMode; Laya.stage.screenMode = GameConfig.screenMode; Laya.stage.alignV = GameConfig.alignV; Laya.stage.alignH = GameConfig.alignH; // 关于透传接口...

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

333. 关于laya生成的canvas定位问题导致内部事件不正确 [ 62%]

...="UTF-8"> <title></title> <meta name="viewport" content="width=750, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <style> *{margin: 0; padding: 0;} body{background: #0099FF;} body,html{height: 100%;} .layaDiv{width: 300px;height: 300px;margin:...

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

334. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 62%]

... rankList.array = data;     rankList.height = 800;     //rankList.width = 1100;     console.log('ranklist info xxxxxxxxxxxxxxxxxxxxx')     console.log(rankList.width);     console.log(rankList.height);             /*var rank:ListPage = new ListPage();     Laya.sta...

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

335. 2D精灵光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 61%]

...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

336. 对象池对类怎么传参数 [ 61%]

...象指定到Image,并用程式控制播放吗? 获取sprite对象的 width和height为0 请问Texture2D如何用base64字符串构建对象 问题状态 最新活动: 2017-06-27 18:05 浏览: 1835 关注: 2 人 choe • 2017-06-27 18:21 谢谢,已解决问题

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

337. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 61%]

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

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

338. mask的遮挡bug [ 61%]

...layabox小高 赞同来自: 遮罩刷新需要调用repaint,一般的x/y/width/height/visible这些改变都会自动调用,但rendertexture的更新无法感知,所以有这个需求的只能自己每帧调用。 2023-08-09 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折...

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

339. 最新版本的1.7.2beta切图问题。 [ 61%]

...如果图片处于图集边缘,空白部分超出图集大小,会造成width和sourceWidth不一致。如果图片用于动画编辑,会被二次裁切。进一步被缩小。。。 2017-04-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

340. TiledMap加载报错 relativePath为空 [ 60%]

..."name":"\u5757\u5c42 2", "opacity":1, "type":"tilelayer", "visible":true, "width":25, "x":0, "y":0 }, { "data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 206, 206, 206,...

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