From d1ad94bcfece6b7d40c69e8fb5cc97a6945ed206 Mon Sep 17 00:00:00 2001 From: hevinci Date: Wed, 5 Jul 2023 14:50:21 +0800 Subject: [PATCH] update runtime code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 移除了YooAssets.SetCacheSystemBuildinPath()方法 2. 移除了YooAssets.SetCacheSystemSandboxPath()方法 3. 移除了YooAssets.GetStreamingAssetBuildinFolderName()方法 4. 移除了YooAssets.GetSandboxRoot()方法 5. 移除了YooAssets.ClearSandbox()方法 --- Assets/YooAsset/Runtime/YooAssets.cs | 69 ---------------------------- 1 file changed, 69 deletions(-) diff --git a/Assets/YooAsset/Runtime/YooAssets.cs b/Assets/YooAsset/Runtime/YooAssets.cs index 4385753..0a496ae 100644 --- a/Assets/YooAsset/Runtime/YooAssets.cs +++ b/Assets/YooAsset/Runtime/YooAssets.cs @@ -253,48 +253,6 @@ namespace YooAsset CacheSystem.InitVerifyLevel = verifyLevel; } - /// - /// 设置缓存系统参数,沙盒目录的存储路径 - /// - public static void SetCacheSystemBuildinPath(string buildinPath) - { - if (string.IsNullOrEmpty(buildinPath)) - { - YooLogger.Error($"Buildin path is null or empty !"); - return; - } - - // 注意:需要确保没有任何资源系统起效之前才可以设置! - if (_packages.Count > 0) - { - YooLogger.Error($"Please call this method {nameof(SetCacheSystemBuildinPath)} before the package is created !"); - return; - } - - PersistentTools.OverwriteBuildinPath(buildinPath); - } - - /// - /// 设置缓存系统参数,沙盒目录的存储路径 - /// - public static void SetCacheSystemSandboxPath(string sandboxPath) - { - if (string.IsNullOrEmpty(sandboxPath)) - { - YooLogger.Error($"Sandbox path is null or empty !"); - return; - } - - // 注意:需要确保没有任何资源系统起效之前才可以设置! - if (_packages.Count > 0) - { - YooLogger.Error($"Please call this method {nameof(SetCacheSystemSandboxPath)} before the package is created !"); - return; - } - - PersistentTools.OverwriteSandboxPath(sandboxPath); - } - /// /// 设置缓存系统参数,禁用缓存在WebGL平台 /// @@ -304,33 +262,6 @@ namespace YooAsset } #endregion - #region 沙盒相关 - /// - /// 获取内置文件夹名称 - /// - public static string GetStreamingAssetBuildinFolderName() - { - return YooAssetSettings.StreamingAssetsBuildinFolder; - } - - /// - /// 获取沙盒的根路径 - /// - public static string GetSandboxRoot() - { - return PersistentTools.GetPersistentRootPath(); - } - - /// - /// 清空沙盒目录(需要重启APP) - /// - public static void ClearSandbox() - { - YooLogger.Warning("Clear sandbox folder files, Finally, restart the application !"); - PersistentTools.DeleteSandbox(); - } - #endregion - #region 调试信息 internal static DebugReport GetDebugReport() {