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

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

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

... = 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更新时间: 202...

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

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

... = 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更新时间: 202...

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

73. 列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

... list.renderHandler = new Laya.Handler(this, this.updateItem); this.owner.addChild(list); // 设置数据源为对应图片的路径 var data: any[] = []; for (var i: number = 0; i < 10; ++i) { data.push("resources/res/ui/listskins/1.jpg"); data.push("resources/res/ui/listskins/2.jpg"); data.push...

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

74. 基于Cannon.js的物理系统(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 56%]

....创建盒型MeshSprite3D ```typescript var box: MeshSprite3D = this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(sX, sY, sZ))) as MeshSprite3D; ``` - 2.为精灵添加CannonRigidbody3D组件 ```typescript var rigidBody: CannonRigidbody3D = box.addComponent(CannonRigidbody3D); ``` - 3.设...

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

75. 微信小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

...gt; { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2", this.printProgress).then(() => { Laya.loader.load("sub2/Sphere.lh").then((res: any) => { let sp3 = res.create(); this.scene3d.addChild(sp3); }); }) } printProgress(r...

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

76. 复选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

...aya.CheckBox { let cb: Laya.CheckBox = new Laya.CheckBox(skin); this.owner.addChild(cb); cb.labelColors = "white"; cb.labelSize = 20; cb.labelFont = "Microsoft YaHei"; cb.labelPadding = "3,0,0,5"; return cb; } private updateLabel(checkBox: Laya.CheckBox): void { checkBox.label = checkBox.selected ? ...

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

77. 导航标签组组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...ex); tab.selectHandler = new Laya.Handler(this, this.onSelect); this.owner.addChild(tab); return tab; } private onSelect(index: number): void { console.log("当前选择的标签页索引为 " + index); } } 运行效果如下动图所示: (动图2-1) Copyright ©Layabox 2025 all right reserved...

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

78. 树状列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...Laya.stage.height - tree.height) / 2; tree.bgColor = "#d25454"; this.owner.addChild(tree); } } class Item extends Laya.Box { constructor() { super(); this.right = 0; this.left = 0; var selectBox: Laya.Clip = new Laya.Clip("resources/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox";//设...

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

79. 挂载物体的3D变换问题 [ 55%]

...D.transform.localRotationEuler = new Vector3(90,90,90); role.getChildAt(0).addChild(cylinder3D); this.ani.linkSprite3D("weaponEffect",cylinder3D) 2017-09-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 183*****7...

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

80. 视频节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...ake(): void { let video = new Laya.VideoNode; //添加到舞台 Laya.stage.addChild(video); video.pos(200,200); //设置位置 video.source = "resources/layaAir.mp4"; //设置视频源文件 video.play(); //开始播放 } } Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更...

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