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

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

41. 自定义物理引擎 · LayaAir3.3 · 引擎文档 · LAYABOX [ 74%]

...初始化阶段去下载资源,那么就需要使用Laya.addBeforeInitCallback()来注册方法,代码使用示例如图2-2所示。 (图2-2) 2.3 合并为完整的物理引擎库 完成适配工作后,开发者可以参照Cannon适配源码中的gulp脚本,将物理引擎适配源码编译...

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

42. 自定义2D Shader · LayaAir3.3 · 引擎文档 · LAYABOX [ 74%]

...Render)上面,如图8-3所示。 (图8-3) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:54 img{cursor:pointer}

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

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

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

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

44. LayaTree调试工具 · LayaAir3.3 · 引擎文档 · LAYABOX [ 71%]

...记 三、工具服务 LayaTreeQQ群: 200482074 Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2024-09-10 16:27:12 img{cursor:pointer}

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

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

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

46. 3D场景环境设置 · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

...e3D资源 Laya.stage.addChild(scene.scene3D); }); Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:58 img{cursor:pointer}

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

47. Spine渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

...自动根据Spine主文件加载关联资源。 Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-11-28 17:11:46 img{cursor:pointer}

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

48. 事件管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

...器能够接收事件通知。 * @param type 事件的类型。 * @param caller 事件侦听函数的执行域。 * @param listener 事件侦听函数。 * @param args (可选)事件侦听函数的回调参数。 * @return 此 EventDispatcher 对象。 */ on(type: string, caller: any, listener: ...

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

49. 纹理资源 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

...最近的 2 次幂尺寸(如:300×500 → 512×512); 较小的(smaller):向下取整至最近的 2 次幂尺寸(如:300×500 → 256×256)。 在现代 GPU 中,NPOT 支持已普遍实现,但自动缩放仍能提升性能与兼容性,尤其在移动端或 WebGL 环境下。 ...

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

50. 资源加载 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

...a?: boolean, hdrEncodeFormat?: HDREncodeFormat, } Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:28:00 img{cursor:pointer}

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