0

The problem is that the packages are loaded in the same stream as the game and when they are unpacked, the game freezes. Is it possible to fix it somehow?

AsyncOperationHandle downloadAsync = Addressables.DownloadDependenciesAsync(_preloadAssets[i]);

while (!downloadAsync.IsDone && downloadAsync.IsValid())
{
  downloadStatus = downloadAsync.GetDownloadStatus();
  OnPercentChange.Invoke(downloadStatus.Percent);
  await Task.Yield();
}
Nik
  • 19
  • 3

0 Answers0