大约有 1,720 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0049 秒)
Laya_社区(1002) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(48)
...age.addChild(new MousePickingScene()); // Laya.init(Browser.width, Browser.height); // Laya.stage.scaleMode = Stage.SCALE_NOSCALE; infoText = "距离:null"; mySwitch = true; target = new BMap.Point(113.392307, 23.062487); createDom(); initMap(); createButton(); var successHandler = new Handler(thi...
来源: Laya_社区 发布时间: 20170323
...nIndex = 0; (function() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); })(); function startFun() { mAniPath = "res/spine/spineRes1/dragon.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on...
来源: Laya_社区 发布时间: 20181120
... canvas.graphics.drawPoly(Laya.stage.width / 2, Laya.stage.height / 2, path, "#FF7F50"); } } } ``` 代码运行效果如下图所示:  (图4) 通过上面的示例代码的写法,是不是感觉代码的可...
来源: Laya2.0_文档 发布时间: 20210714
... Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } ``` 上述代码运行效果如动图2所示:  (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Button API](https://layaair2.ldc2.l...
来源: Laya2.0_文档 发布时间: 20210714
...id { let vs: Laya.Slider = new Laya.VSlider(); vs.skin = "vslider.png"; vs.height = 300; vs.pos(400, 50); vs.min = 0; vs.max = 100; vs.value = 50; vs.tick = 1; vs.changeHandler = new Laya.Handler(this, this.onChange); this.owner.addChild(vs); } private onChange(value: number): void { console.log("...
来源: Laya3.0_文档 发布时间: 20251010
... Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } } new GameMain(); ``` 上述代码运行效果如动图2所示:  (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Button API](https...
来源: Laya2.0_文档 发布时间: 20210714
...什么宽高) console.log(tiledMap.gridWidth,tiledMap.gridHeight); //地图宽高 console.log(tiledMap.width,tiledMap.height); // console.log(tiledMap.numColumnsGrid,tiledMap.numRowsGrid ); console.log(...
来源: Laya_社区 发布时间: 20180614
... tex.once(Event.READY, this, this.drawImage, [tex, x, y, width, height]); } 导致 tex 找不到 getIsReady 方法报错 报错堆栈 TypeError: tex.getIsReady is not a function at Graphics.loadImage (file:///D:/zxl/2.0_stable/lfGame2.0/bin/libs/lay...
来源: Laya_社区 发布时间: 20200417
...什么宽高) console.log(tiledMap.gridWidth,tiledMap.gridHeight); //地图宽高 console.log(tiledMap.width,tiledMap.height); // console.log(tiledMap.numColumnsGrid,tiledMap.numRowsGrid ); console.log(...
来源: Laya_社区 发布时间: 20180612
...问题。 Laya.init(GameConfig_1.default.width, GameConfig_1.default.height, Laya["WebGL"]); 加了一些alert,bundle.js 这里的Laya["WebGL"]已经是undefined了: 虽然在core.js中强制使用了webgl,if (!isWebGLEnabled)/*__JS__ */{laya.webgl.WebGL.enable();} 但在webgl.js ...
来源: Laya_社区 发布时间: 20200218