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

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

91. 3D中摄像机绕物体旋转该如何实现? [ 50%]

...t3D,给它添加一个cameraMoveScript脚本组件,然后​cameraroot.addchild创建一个摄像机,设置好摄像机的默认位置角度使其朝向物体就行了 2017-07-14 1 1 分享 微博 QZONE 微信 183*****755 赞同来自: 需要开发者参考cameraMoveScript脚本组件自己实...

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

92. 2D寻路 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

...e; //sprite.cache = true; this._temp = new Laya.Sprite(); this.owner.scene.addChild(this._temp); this.findCompents(this._allAgent, sprite.scene, Nav2DAgent); } onMouseClick(evt: Laya.Event): void { let pos = new Laya.Vector2(evt.stageX, evt.stageY); console.log("click", pos); this._temp.graphics.cle...

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

93. 预制体模块 · LayaAir3文档 · LAYABOX [ 46%]

...Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-6) 3.2 3D预制体 3D预制体的使用过程同2D预制体一样,在这里我们就不介绍如何制作预制体了,通过下面的示例来看看3D预...

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

94. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

...Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-6) 3.2 3D预制体 3D预制体的使用过程同2D预制体一样,在这里我们就不介绍如何制作预制体了,通过下面的示例来看看3D预...

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

95. 3D物理系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...aterial; //把圆锥形3D节点对象添加到3D场景节点下 this.scene.addChild(cone); //设置随机位置 this.tmpVector.setValue(Math.random() * 6 - 2, 6, Math.random() * 6 - 2); cone.transform.position = this.tmpVector; //为圆锥形3D节点对象创建刚体碰撞器 let _rigidBody = <L...

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

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

...(0.5, 0.5); mArmature.on(Event.STOPPED, this, completeHandler); Laya.stage.addChild(mArmature);   play(); }); }   function completeHandler() { mArmature.stop();         mArmature.removeSelf();         mArmature.removeChildren();         mArmature.destroy(true);           Laya.Pool...

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

97. vivo小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

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

98. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...t btn = IEditor.GUIUtils.createButton(); btn.setPos(150, 180); this._panel.addChild(btn); } accept(asset: IEditor.IAssetInfo): boolean { return asset.ext === "abc"; //应用于扩展名是abc的资源 } async refresh(asset: IEditor.IAssetInfo, render3DCanvas: IEditor.IRender3DCanvas): Promise<voi...

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

99. 3D粒子 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...(child); this._shurikenParticleSystem.push(child.particleSystem); } } this.addChild(this._particle); this._isInited = true; } //粒子特效播放,由于一个复杂的粒子特效由多个粒子系统组成,此时遍历粒子特效所有粒子系统对象调用play() play(): void { for (var i =...

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

100. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 42%]

...(child); this._shurikenParticleSystem.push(child.particleSystem); } } this.addChild(this._particle); this._isInited = true; } //粒子特效播放,由于一个复杂的粒子特效由多个粒子系统组成,此时遍历粒子特效所有粒子系统对象调用play() play(): void { for (var i =...

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