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

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

1. 鼠标脚本(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 100%]

..."点击到了我box",owner.name); //从父容器销毁我自己 this.owner.removeSelf(); } } ``` > **主类**: ```typescript //给四个猴子添加脚本 this.staticLayaMonkey.addComponent(MouseScript); this.layaMonkey_clone1.addComponent(MouseScript); this.layaMonkey_clone2.addComponent(MouseScrip...

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

2. 鼠标脚本(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 99%]

..."点击到了我box",owner.name); //从父容器销毁我自己 this.owner.removeSelf(); } } ``` > **主类**: ```typescript //给四个猴子添加脚本 this.staticLayaMonkey.addComponent(MouseScript); this.layaMonkey_clone1.addComponent(MouseScript); this.layaMonkey_clone2.addComponent(MouseScrip...

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

3. 动画挂点(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 91%]

....role); this.aniSprte3D2.removeChild(this.role); //移除龙2 this.dragon2.removeSelf(); //将role添加到场景上,同时播放hello动画 this.scene.addChild(this.role); this.animator.play("hello"); ``` ![](img/4.gif)(图4)

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

4. 动画挂点(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 91%]

....role); this.aniSprte3D2.removeChild(this.role); //移除龙2 this.dragon2.removeSelf(); //将role添加到场景上,同时播放hello动画 this.scene.addChild(this.role); this.animator.play("hello"); ``` ![](img/4.gif)(图4)

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

5. 鼠标脚本(ActionScript-3D基础(AS3)-LayaAir3D之鼠标交互) [ 82%]

...ace("点击到了我box",owner.name); //从父容器销毁我自己 meshsp.removeSelf(); } } ``` > **主类**: ```typescript //给四个猴子添加脚本 staticLayaMonkey.addComponent(MouseScript); layaMonkey_clone1.addComponent(MouseScript); layaMonkey_clone2.addComponent(MouseScript); layaMonkey_...

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

6. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 73%]

...e3DToAvatarNode(role); aniSprte3D2.removeChild(role); //移除龙2 dragon2.removeSelf(); //将role添加到场景上,同时播放hello动画 scene.addChild(role); animator.play("hello"); ``` ![](img/4.gif)(图4)

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