大约有 1,723 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0067 秒)
Laya_社区(1004) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(49)
...drawTexture(texture); //设置纹理宽高 img.size(texture.width, texture.height); } } } ``` 代码运行效果如图7-2所示。  (动图7-2)
来源: Laya2.0_文档 发布时间: 20210715
...ollBarSkin="res/home/button_speaker.png"; panel.width=300; panel.height=300; panel.x = 200; panel.y = 200; This.addChild(panel); panel.addChild(text); panel.vScrollBar.min=1; panel.vScrollBar.max=500; panel.vScrollBar.value=panel.vScrollBar.max; Laya.timer.frameLoop(12,this,onLoop); functi...
来源: Laya_社区 发布时间: 20170609
...t.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.renderHandler = new Handler(this, updateItem); Laya.stag...
来源: Laya2.0_文档 发布时间: 20210714
...使用时需要多大的字就在此处设置相同大小的字号。 Height:设置字体的拉伸高度,保持默认的100%就可以。 * 注意:Charset的值选择Unicode。*  5.在选择菜...
来源: Laya2.0_文档 发布时间: 20201114
... (图1-8) 我们可以通过偏移localOffset、半径radius、高度height、方向orientation,来设置圆柱体碰撞形状的位置、圆柱粗细、圆柱高矮、胶囊朝向,如图1-9所示。 (图1-9) 1.1.5 圆锥体碰撞形状 圆锥体碰撞形状用于表示一个锥体物体...
来源: Laya3.0_文档 发布时间: 20251010
... flower.pivotY=80; flower.zOrder = budai.y; flower.autoSize = true; flower.height = 100; flower.width = 100; flower.size(100,100); flower.on(Laya.Event.CLICK,this,function() { alert("My Name is Bear"); }); mallLayer.addChild(flower); mallLayer._showGridList.push(flower); 附件 : --> hxwlworld...
来源: Laya_社区 发布时间: 20180722
...eatY = 4; list.x = (Laya.stage.width - Item.WID) / 2; list.y = (Laya.stage.height - Item.HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, this.onSelect); list.renderHandler = new Handler(this, this.updateI...
来源: Laya2.0_文档 发布时间: 20210715
...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; showApe(); })(); function showApe() { // 方法1:使用loadIm...
来源: Laya2.0_文档 发布时间: 20210715
...his.aaa.playerNameList[i].playerhandpoker[j].PokerDre; img.width = 76; img.height = 110; img.pos(200 + i * 35, 230); Laya.stage.addChild(img); this.reciveOutPoker.push(img); this.outHandPoker.push(this.aaa.playerNameList[i].playerhandpoker[j]); this.lastPaixing = 1; for (let x = 0; x < this.out...
来源: Laya_社区 发布时间: 20180626
...-----2"); Laya.Browser.window.conch.captureScreen(function(arrayBuff,width,height){ console.log("onCharge-------------------------3"); //存储文件的方 Laya.Browser.window.conch.saveAsPng( arrayBuff,width,height,Laya.Browser.window.conch.getCachePath()+"/test.png" ); console.log("onCharge-------...
来源: Laya_社区 发布时间: 20170609