新增DISABLE_ONDEMAND_DOWNLOAD文件配置参数
This commit is contained in:
何冠峰
2025-07-22 18:59:47 +08:00
parent 5d7afff3e4
commit 33907ea967
3 changed files with 21 additions and 1 deletions
@@ -49,7 +49,17 @@ namespace YooAsset
}
else
{
_steps = ESteps.DownloadFile;
if (_fileSystem.DisableOnDemandDownload)
{
_steps = ESteps.Done;
Status = EOperationStatus.Failed;
Error = $"The bundle not cached : {_bundle.BundleName}";
YooLogger.Warning(Error);
}
else
{
_steps = ESteps.DownloadFile;
}
}
}