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

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

2031. 龙骨动画-拖拽-点击区域HitArea设置问题 [ 44%]

...s(400,600); skeleton.on(Laya.Event.MOUSE_DOWN, this, dragFunc); Laya.stage.addChild(skeleton); skeleton.play(0,true); rectangle = skeleton.getBounds(); var hitArea = new Laya.HitArea(); var graphic = new Laya.Graphics(); graphic.drawRect(-rectangle.x, -rectangle.y, rectangle.width, rectangle.height)...

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

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

...时触发 progressBar.changeHandler=new Handler(this,onChange); Laya.stage.addChild(progressBar); } private function onChange(value:Number):void { trace("进度: "+Math.floor(value*100)+"%"); } //游戏资源加载进度函数 private function onProgress(pro:Number):void { trace("加载了总文件...

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

2033. 绘制曲线(TypeScript-LayaAir基础篇(TS)-矢量图) [ 44%]

...      this.sp = new Sprite();             Laya.stage.addChild(this.sp);             //画折线             this.sp.graphics.drawCurves(10, 58, [0, 0, 19, -100, 39, 0], "#ff0000", 3);       }     } } new laya.Sprite_DrawShapes(); ``` ...

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

2034. laya.ui.LayoutBox [ 44%]

...nherited Public Methods Show Inherited Public Methods MethodDefined By  addChild(child:Node):Node[override] 添加子节点。 LayoutBox  addChildAt(child:Node, index:int):Node[override] 添加子节点到指定的索引位置。 LayoutBox addChildren(... args):void 批量增加子节点 Node...

来源: Laya2.0_api 发布时间: 20190513

2035. 基于Cannon.js的物理系统(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 44%]

...annon.js** - 1.创建盒型MeshSprite3D ```typescript var box = this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(sX, sY, sZ))); ``` - 2.为精灵添加CannonRigidbody3D组件 ```typescript var rigidBody = box.addComponent(CannonRigidbody3D); ``` - 3.设置碰撞器形状 ```typescript //...

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

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

... var btn = new Laya.Button(skin); //将Button添加到舞台上 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 组件的...

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

2037. 绘制曲线(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 44%]

...         sp = new Sprite();             Laya.stage.addChild(sp);             //画曲线             sp.graphics.drawCurves(10, 58, [0, 0, 19, -100, 39, 0], "#ff0000", 3);                        }     } } ``` 发布...

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

2038. Skeleton骨骼动画内存泄漏 [ 44%]

...re(0); this.sk.x = 400; this.sk.y = 700; this.sk.play(0, true); Laya.stage.addChild(this.sk); } Demo如下: 附件 : --> skTest.zip 2019-03-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 10 个回复 Lee3260 赞同来自...

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

2039. 垂直滑动条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 44%]

... = 1; vs.changeHandler = new Laya.Handler(this, this.onChange); this.owner.addChild(vs); } private onChange(value: number): void { console.log("滑块的位置:" + value); } } 运行效果: (动图2-1) Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更新时间: 202...

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

2040. 水平滑动条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 44%]

... = 1; hs.changeHandler = new Laya.Handler(this, this.onChange); this.owner.addChild(hs); } private onChange(value: number): void { console.log("滑块的位置:" + value); } } 运行效果: (动图2-1) Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更新时间: 202...

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