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

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

1. 2.x引擎项目升级说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

...s.push(Laya.loader.load(url)); tasks.push(Laya.loader.load(url2)); Promise.all(tasks).then((res:Array<any>)=> { //用于异步加载 }); 1.4 Texture和Texture2D的问题 同一个资源地址,无论是加载Texture还是Texture2D,他们在内存中都只有一份,但可以获取不同...

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

2. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 99%]

...{ colaStarArr[h] = 0; } } }; return aStarArr; } } Copyright ©Layabox 2022 all right reserved,powered by LayaAir Engine更新时间: 2023-03-03 17:33:44 img{cursor:pointer}

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

3. 网格像素线 · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

...示外部模型的像素线效果 (动图3-1) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:56 img{cursor:pointer}

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

4. 3D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 74%]

...知1.1 降低渲染的CPU成本1.2 降低渲染的GPU成本2.优化Draw Call3.GPU instance4.Dynamic Batch5.Static Batch6.Custom Static Batch(Static Batch Volume组件)7.基于节点的材质合批功能7.1表现效果7.2 使用示例3D性能优化 1.图形性能的基本认知 1.1 降低渲染的CPU...

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

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

...绘制图形用于显示鼠标点击的位置。用另一个Sprite节点(allow),绘制图形表示寻路的角色,如图3-2所示, (图3-2) 在图2-21的surface节点上创建一个自定义的组件脚本: import Sprite = Laya.Sprite; import Component = Laya.Component; import Nav2DA...

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

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

.../回到站立状态 this.animator.crossFade("Stand", 0.1); Laya.timer.clearAll(this); } }); } } 看看运行效果,如动图6-6所示: (动图6-6) 6.3 使用状态脚本 对我们的开发需求来说,能够播放和切换动画状态还不够,可能还需要在每一个状态内实现...

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