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() {