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

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

31. 图像组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 77%]

....Image = new Laya.Image("resources/layaAir.png"); img.pos(165, 62.5); this.owner.addChild(img); } } Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}

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

32. 垂直布局容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 77%]

...n(() => { this.createBtn(); this.createvbox(); // 添加VBox组件 this.owner.addChild(this.vbox); }); } // 创建Button组件 private createBtn(): void { this.btn1 = new Laya.Button(this.skins); this.btn2 = new Laya.Button(this.skins); this.btn3 = new Laya.Button(this.skins); } // 创建VBox组...

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

33. 水平布局容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 77%]

...n(() => { this.createBtn(); this.createHbox(); // 添加HBox组件 this.owner.addChild(this.hbox); }); } // 创建Button组件 private createBtn(): void { this.btn1 = new Laya.Button(this.skins); this.btn2 = new Laya.Button(this.skins); this.btn3 = new Laya.Button(this.skins); } // 创建HBox组...

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

34. layacmd 安装不成功 [ 77%]

... ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls electron npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR npm ERR! code 1 2017-11-24 添加评论 免费帖 --> 分享 微博 QZON...

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

35. Spine渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 76%]

... => { // 添加Spine渲染器组件到精灵节点上 this.spine = this.owner.addComponent(Laya.Spine2DRenderNode); this.spine.source = "girl2/mix-and-match-pro.json"; // 设置Spine动画数据源 this.spine.skinName = "full-skins/girl"; // 设置皮肤名称 this.spine.play("idle", false); // ...

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

36. 单选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

...io.labelSize = 20; radio.labelBold = true; radio.labelVAlign = "top"; this.owner.addChild(radio); } } 效果如动图2-1所示: (动图2-1) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}

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

37. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 74%]

...= Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "第{n=1}页"; //显示文本的初始化内容 } onStart(): void { let page: number = 1; Laya...

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

38. 面板容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 74%]

... "atlas/comp/hscroll.png"; panel.size(600, 275); panel.pos(150, 150); this.owner.addChild(panel); // 创建Image组件,作为Panel的子节点 let img: Laya.Image; for (var i: number = 0; i < 4; i++) { // 创建4个Image,水平排列 img = new Laya.Image("atlas/comp/image.png"); img.x = i * 5...

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

39. 垂直滑动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

...s.tick = 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 2025 all right reserved,powered by LayaAir Engine更新时间...

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

40. 水平滑动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

...s.tick = 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 2025 all right reserved,powered by LayaAir Engine更新时间...

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