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

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

1. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 100%]

...点的名字。 * @return 节点对象。 */ getChildByName(name: string): Node { for (let child of this._children) { if (child && child.name === name) return child; } return null; } 当我们找到子节点时,也可以对节点做一些基础操作,比如删除掉自己方法 removeSel...

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

2. 插件开发说明 · LayaAir3.0文档 · LAYABOX [ 96%]

.../移动,HTTP请求,上传/下载等等。 开发者可以直接使用node模块,另外,IDE也内置了一些常用的npm库,例如sharp,glob,pinyin, @svgdotjs/svg.js等。引用node内置模块可以使用import xx from "xx"的方式,所有IDE内置cjs模块都可以通过IEditor.req...

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

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

...高程序的运行速度和稳定性。 5.1 自定义Particle3D类 import Node = Laya.Node; import Sprite3D = Laya.Sprite3D; import ShuriKenParticle3D = Laya.ShuriKenParticle3D; import ShurikenParticleSystem = Laya.ShurikenParticleSystem; import { Pool } from "./Pool"; //粒子特效的基类,包...

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

4. 组件装饰器说明 · LayaAir3.0文档 · LAYABOX [ 52%]

... private particle3D: Laya.ShurikenParticleRenderer; @property( { type:Laya.Node } ) //节点类型 private scnen2D: Laya.Node; @property( { type:Laya.Box } ) //拿到 Box 组件 private box: Laya.Box; @property( { type:Laya.List } ) //拿到 List 组件 private list: Laya.List; @property( { type:Lay...

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

5. 2.x引擎项目升级指南 · LayaAir3.0文档 · LAYABOX [ 52%]

...心,只需要知道它有一个create方法实例化节点树。*/ let node = res.create(); }); 1.8 旧版本引擎load和create的兼容性问题 3.0以前的引擎,有Laya.loader.load()和Laya.loader.create()方法两个方法,分别用于加载2D和3D资源。 3.0引擎版本统一使用loa...

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

6. 场景管理 · LayaAir3.0文档 · LAYABOX [ 52%]

...fab }) private loadingScenePrefab: Laya.Prefab; private loadingScene: Laya.Node; constructor() { super(); } /** * 第一次执行update之前执行,只会执行一次 */ onStart(): void { //创建Loading场景 this.loadingScene = this.loadingScenePrefab.create(); //设置Loading场景 Laya.Scene.s...

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

7. UI运行时 · LayaAir3.0文档 · LAYABOX [ 46%]

...i); } //找出所有ui下的Button包括子节点下 searchButton(ui: Laya.Node) { for (let i = 0; i < ui.numChildren; i++) { let child = ui.getChildAt(i); if (child instanceof Laya.Button) { console.log("发现Button"); this.onButtonScaleEvent(child); } else { //查找子节点 this.searchButton...

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

8. 实体组件系统 · LayaAir3.0文档 · LAYABOX [ 40%]

... private particle3D: Laya.ShurikenParticleRenderer; @property( { type:Laya.Node } ) //节点类型 private scnen2D: Laya.Node; @property( { type:Laya.Box } ) //拿到 Box 组件 private box: Laya.Box; @property( { type:Laya.List } ) //拿到 List 组件 private list: Laya.List; @property( { type:Lay...

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