大约有 1,873 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0051 秒)
Laya_社区(1137) Laya3.0_api(242) Laya2.0_文档(103) Laya2.0_示例(94) Laya_示例(91) Laya2.0_api(82) laya_api(76) Laya3.0_文档(48)
...Filter meshRenderer minX minZ numChildren parent scene timer transform url width Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChil...
来源: Laya3.0_api 发布时间: 20231102
...显示截屏后的纹理 public function LayaAirDemo() { Laya.init(Browser.width, Browser.height);//引擎初始化 Laya.stage.bgColor = "#ffcccc";//背景颜色 Stat.show();//显示帧频,用于观察Curmem变化 //添加被截屏对象 sp= new Sprite(); sp.loadImage("bg2.png"); Laya.stage.addChi...
来源: Laya_社区 发布时间: 20170822
...33);//五角星J点 canvas.graphics.drawPoly(Laya.stage.width / 2, Laya.stage.height / 2, path, "#FF7F50"); } })(); ``` 代码运行效果如下图所示:  (图4) 通过上面的示例代码的写法,是不是感觉代...
来源: Laya2.0_文档 发布时间: 20210715
...rollBar.skin = "../../../../res/ui/hscroll.png"; //设置宽度 hScrollBar.width = 400; //设置位置 hScrollBar.pos(150, 170); //最低滚动位置数字 hScrollBar.min = 0; //最高滚动位置数字 hScrollBar.max = 100; //滚动变化事件回调 hScrollBar.changeHandler = new Handler(this, onC...
来源: Laya2.0_文档 发布时间: 20210714
... 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
...eo.loop = true; var texture2D = 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 = vide...
来源: Laya_社区 发布时间: 20240305
...J点坐标 canvas.graphics.drawPoly(Laya.stage.width / 2, Laya.stage.height / 2, path, "#FF7F50"); } } } new laya.Sprite_DrawShapes(); ``` 代码运行效果如下图所示:  (图4) 通过上面的示例...
来源: Laya2.0_文档 发布时间: 20210714
...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
...HADING; Laya.stage.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 = ...
来源: Laya_社区 发布时间: 20170323
...e; var mCurrSkinIndex = 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, parseComplet...
来源: Laya_社区 发布时间: 20181120