大约有 6 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0035 秒)
...ar(); } } } 建议在一个模块功能销毁之前,清理定时器或者清除所有的定时器。 6. 立即执行并删除定时器 Laya.timer.runCallLater:立即执行callLater,执行后删除。定义如下: /** * 立即执行 callLater 。 * @param caller 执行域(this)。 * @param me...
来源: Laya3.0_文档 发布时间: 20251010
...obj); aList.RemoveChildrenToPool(); 添加对象时不使用池,但最后清除列表时却放到池里。这段代码持续运行,对象池将不断增大,可能造成内存溢出。 正确的做法:应从池中创建对象。将addChild改成addItemFromPool。 错误示例2: for(let i=0;...
来源: Laya3.0_文档 发布时间: 20251128
...: Unity的相机属性 LayaAir是否支持导出的说明 Clear Flags(清除标志) 支持 (包括:Skybox天空盒(Background背景色)、Solid Color纯色(Background背景色)、Depth only仅深度、Don’t Clear不清除) Projection(投射方式) 支持(包括:Perspect...
来源: Laya3.0_文档 发布时间: 20251010
...为null,垃圾回收器将扫描无法被访问到的对象,并将其清除,这会比引用计数更消耗性能。 1.3 资源卸载 游戏运行时总会加载许多资源,这些资源在使用完成后应及时卸载,否则一直残留在内存中。 下例演示加载资源后对比资...
来源: Laya3.0_文档 发布时间: 20251010
...ited = false; this.destroy(true); }; //通过传入粒子特效的路径,清除缓冲池 static ClearPool(root_path: string): void { if (root_path == null) { root_path = ""; } Pool.getInstance().ClearGroup("Particle3D@" + root_path, this, function(particle_3d:Particle3D) { particle_3d.Clean(); });...
来源: Laya3.0_文档 发布时间: 20251010
...ited = false; this.destroy(true); }; //通过传入粒子特效的路径,清除缓冲池 static ClearPool(root_path: string): void { if (root_path == null) { root_path = ""; } Pool.getInstance().ClearGroup("Particle3D@" + root_path, this, function(particle_3d:Particle3D) { particle_3d.Clean(); });...
来源: Laya3.0_文档 发布时间: 20250104