Unity 中的缓存保存对象多长时间?

How long does the Cache in Unity hold objects?

我在运行时使用 "LoadFromCacheOrDownload()" 从服务器加载资产包。

我想知道资产包在那里存储了多长时间(多长时间?重启后还在吗?)。 我还应该将它们保存到文件系统还是缓存足够? 谢谢。

默认情况下,缓存数据也会保留在 150 days before being deleted because it has been unused. So if you don't clean it before that, it will most likely stick around. Caching behaviour is however dependent on the cache size 中,网络为 50MiB,其他平台为 4GiB。

考虑到这一点,由您决定缓存(及其行为)是否满足您的需求,或者您是否最好也自己存储数据。