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

大约有 4 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0024 秒)

1. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 100%]

...{ var str: string = "path" + i; this.path.push(((<MeshSprite3D>scene.getChildByName('Scenes').getChildByName('Area').getChildByName(str))).transform.localPosition); } } 四、角色移动 角色移动,实际上就是在间隔很短的时间内,改变角色的位置。在我们的示例中...

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

2. 视频 · LayaAir3.3 · 引擎文档 · LAYABOX [ 85%]

...取场景中要添加视频纹理的3D节点 this.videoPlane = this.scene.getChildByName("Plane") as Laya.Sprite3D; //使用指定路径的视频文件 this.createVideo("resources/mov_bbb.mp4"); } //创建视频纹理并将其应用到Sprite3D上 private createVideo(url: string): void { //设置纹...

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

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

...某个名字的子节点,通常会调用如下方法来获取子节点 getChildByName("xxx") /** * 根据子节点的名字,获取子节点对象。 * @param name 子节点的名字。 * @return 节点对象。 */ getChildByName(name: string): Node { for (let child of this._children) { if (child...

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

4. 动画状态机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 27%]

...tateInfo.playState = playstate; this._label = animator.owner.scene.scene2D.getChildByName("Label"); } constructor() { super(); } /** * 动画状态开始时执行。 */ onStateEnter(): void { console.log("动画开始播放了"); this._label.text = "开始跑动画"; } /** * 动画状态运行中 * ...

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