大约有 1,723 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0063 秒)
Laya_社区(1004) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(49)
... Laya.stage.width = 1218; Laya.stage.height = 750; if (Laya.Browser.onPC) { //设置舞台缩放模式 Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; ...
来源: Laya_社区 发布时间: 20181202
...= new Laya.Texture2D(videoTexture.video.videoWidth,videoTexture.video.videoHeight); var texture:Laya.Texture = new Laya.Texture(texture2D); var image:Laya.Image = new Laya.Image(); image.texture = texture; image.width = videoTexture.video.videoWidth; image.height = videoTexture.video.videoHeight; im...
来源: Laya_社区 发布时间: 20240305
... canvas.graphics.drawPoly(Laya.stage.width / 2, Laya.stage.height / 2, path, "#FF7F50"); } } } new laya.Sprite_DrawShapes(); ``` 代码运行效果如下图所示:  (图4) 通过上面的示例代码的写法,是不...
来源: Laya2.0_文档 发布时间: 20210714
...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