update YooAssetSettings

This commit is contained in:
何冠峰
2025-02-06 16:43:55 +08:00
parent 38471cdd6c
commit 20c07af504
9 changed files with 51 additions and 63 deletions

View File

@@ -473,16 +473,7 @@ namespace YooAsset
#region
public string GetDefaultCachePackageRoot(string packageName)
{
string rootDirectory;
#if UNITY_EDITOR
rootDirectory = YooAssetSettingsData.GetYooEditorCacheRoot();
#elif UNITY_STANDALONE
rootDirectory = YooAssetSettingsData.GetYooStandaloneCacheRoot();
#else
rootDirectory = YooAssetSettingsData.GetYooMobileCacheRoot();
#endif
string rootDirectory = YooAssetSettingsData.GetYooDefaultCacheRoot();
return PathUtility.Combine(rootDirectory, packageName);
}
public string GetCacheBundleFileLoadPath(PackageBundle bundle)