大约有 18 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)
... 运行效果如本篇开始的动图1-1所示。 Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}
来源: Laya3.0_文档 发布时间: 20251010
...的打散容器,如图2-2所示。 (图2-2) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}
来源: Laya3.0_文档 发布时间: 20251010
...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
...场景,不包括对话框,如果关闭对话框,请使用Dialog.closeAll() * 【注意】被关闭的场景,如果没有设置autoDestroyAtRemoved=true,则资源可能不能被回收,需要自己手动回收 */ static closeAll(): void { 4,关闭后调用的生命周期方法 /** * 关...
来源: Laya3.0_文档 发布时间: 20251010
...知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
...符输入的按键,就不会执行此方法。 Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:57 img{cursor:pointer}
来源: Laya3.0_文档 发布时间: 20251010
...{ 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
...的影响,如动图6-2所示。 (动图6-2) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}
来源: Laya3.0_文档 发布时间: 20251010
.../回到站立状态 this.animator.crossFade("Stand", 0.1); Laya.timer.clearAll(this); } }); } } 看看运行效果,如动图6-6所示: (动图6-6) 6.3 使用状态脚本 对我们的开发需求来说,能够播放和切换动画状态还不够,可能还需要在每一个状态内实现...
来源: Laya3.0_文档 发布时间: 20251010
...个使用同一材质的静态物体在绘制的时候只使用一个drawcall,进而节省了CPU。在光照计算上,static的物体也更快一些。 另外,当勾选Static时,编辑器会询问是否同时改变所有子对象的静态标志,如图2-5所示 (图2-5) 当然也可以...
来源: Laya3.0_文档 发布时间: 20251010