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

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

1801. [LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 43%]

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

1802. 绘制三角形、多边形及根据数据绘制图案(TypeScript-LayaAir基础篇(TS)-矢量图) [ 43%]

...J点坐标               canvas.graphics.drawPoly(Laya.stage.width / 2, Laya.stage.height / 2, path, "#FF7F50");       }     } } new laya.Sprite_DrawShapes(); ``` 代码运行效果如下图所示: ​ ![blob.png](img/4.png) ​ (图4) ​ 通过上面的示例...

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

1803. HScrollBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 43%]

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

1804. Cannot read property 'toDefault' of undefined报错是什么原因 [ 43%]

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

1805. 使用对象池重复使用skeleton报错,请问有解决方案吗?谢谢 [ 43%]

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

1806. VScrollBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 43%]

...his.vScrollBar.skin = "res/ui/vscroll.png"; //设置宽度 this.vScrollBar.width = 400; //设置位置 this.vScrollBar.pos(150, 170); //最低滚动位置数字 this.vScrollBar.min = 0; //最高滚动位置数字 this.vScrollBar.max = 100; //滚动变化事件回调 this.vScrollBar.changeHandler = n...

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

1807. 绘制三角形、多边形及根据数据绘制图案(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 43%]

...                    canvas.graphics.drawPoly(Laya.stage.width / 2, Laya.stage.height / 2, path, "#FF7F50");             }     } } ``` 代码运行效果如下图所示: ​ ![blob.png](img/4.png) ​ (图4) ​ 通过上面的示例代码的写法,...

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

1808. 分享:LayaAir下Loading进度条的制作(ActionScript 3.0) [ 43%]

...ProgressBar("loads/progressBar.png"); progressBar.pos(50,300); progressBar.width=300; progressBar.sizeGrid="5,5,5,5"; //当progressBar的value值改变时触发 progressBar.changeHandler=new Handler(this,onChange); Laya.stage.addChild(progressBar); } private function onChange(value:Number):void { tr...

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

1809. 拖尾 · LayaAir3.4 · 引擎文档 · LAYABOX [ 42%]

...使用尽可能最大的值来实现要创建的效果 2.4.4 宽度设置 Width :宽度值和曲线值以控制轨迹沿其长度的宽度。 曲线是在每个顶点处采样的,因此其精度受制于轨迹中的顶点数量。轨迹的总宽度由宽度值控制。 如动图2-9所示,我...

来源: Laya3.0_文档 发布时间: 20251010

1810. Button属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 42%]

...加到舞台上 Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } ``` 上述代码运行效果如动图2所示: ![动图2](img/2.gif) (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Button API](https://...

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