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

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

81. 挂载物体的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

82. [LayaAir3][LayaAir3]3.3.4 同时添加2个sk,无法正常显示 [ 55%]

...t.buildArmature(0); sk.pos(100 * i, 100 * i); sk.play(0, true); this.owner.addChild(sk); } }); 附件 : --> demo.zip 2025-12-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 layabox 赞同来自: 1704966064用户...

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

83. Spine动画烘焙插件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...ine2dRender.animationName = "walk"; // 添加预制体到场景 this.owner.addChild(spineboy); }); } } Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:57 img{cursor:pointer}

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

84. 视频节点 · 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

85. 抖音小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

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

86. 下拉选项框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

...,item4,item5"); ComboBox.labelSize = 30; ComboBox.itemSize = 25 this.owner.addChild(ComboBox); ComboBox.autoSize = true; ComboBox.pos(200, 200); }); } } Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}

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

87. 官方案例里摄像机绕物体旋转脚本的问题 [ 53%]

...h.Quaternion; /* 用法: //初始化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.rotationEuler = new Laya.Vector3(-32, -75, 0); camera.transform.position =new Laya.Vector3(-8.2, 5.3, 2.2); var modelViewer = camera.addComponent(ModelVi...

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

88. 使用3D精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 52%]

...nsform.position = new Laya.Vector3(1,0,0); //添加到场景中 this.scene.addChild(sp); 其次,这里详细讲解下Sprite3D中特有的克隆接口instantiate /** * 创建精灵的克隆实例。 * @param original 原始精灵。 * @param parent 父节点。 * @param worldPositionStays 是否保...

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

89. 按钮组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 51%]

...g): Laya.Button { var btn: Laya.Button = new Laya.Button(skin); this.owner.addChild(btn); return btn; } } 上述代码运行效果如动图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

90. 单选框组容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 51%]

...rg.selectHandler = new Laya.Handler(this, this.onSelectChange); this.owner.addChild(rg); return rg; } private onSelectChange(index: number): void { console.log("你选择了第 " + (index + 1) + " 项"); } } 效果如图所示: (图3-1) Copyright ©Layabox 2025 all right reserved,powered by ...

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