From 90ad292b84d89caac29cf4ebb11846383f91fbdd Mon Sep 17 00:00:00 2001 From: hevinci Date: Tue, 18 Oct 2022 10:13:04 +0800 Subject: [PATCH] Update runtime code --- Assets/YooAsset/Runtime/Settings/YooAssetSettings.cs | 2 +- Assets/YooAsset/Runtime/Utility/YooHelper.cs | 2 +- Assets/YooAsset/Runtime/YooAssets.cs | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Assets/YooAsset/Runtime/Settings/YooAssetSettings.cs b/Assets/YooAsset/Runtime/Settings/YooAssetSettings.cs index 0879daa..489f188 100644 --- a/Assets/YooAsset/Runtime/Settings/YooAssetSettings.cs +++ b/Assets/YooAsset/Runtime/Settings/YooAssetSettings.cs @@ -49,7 +49,7 @@ namespace YooAsset /// /// 内置资源目录名称 /// - public const string StreamingAssetsRootFolder = "BuildinFiles"; + public const string StreamingAssetsBuildinFolder = "BuildinFiles"; /// diff --git a/Assets/YooAsset/Runtime/Utility/YooHelper.cs b/Assets/YooAsset/Runtime/Utility/YooHelper.cs index a13da13..1c0a454 100644 --- a/Assets/YooAsset/Runtime/Utility/YooHelper.cs +++ b/Assets/YooAsset/Runtime/Utility/YooHelper.cs @@ -30,7 +30,7 @@ namespace YooAsset /// public static string MakeStreamingLoadPath(string path) { - return StringUtility.Format("{0}/{1}/{2}", UnityEngine.Application.streamingAssetsPath, YooAssetSettings.StreamingAssetsRootFolder, path); + return StringUtility.Format("{0}/{1}/{2}", UnityEngine.Application.streamingAssetsPath, YooAssetSettings.StreamingAssetsBuildinFolder, path); } /// diff --git a/Assets/YooAsset/Runtime/YooAssets.cs b/Assets/YooAsset/Runtime/YooAssets.cs index 33189c0..2ecfe8d 100644 --- a/Assets/YooAsset/Runtime/YooAssets.cs +++ b/Assets/YooAsset/Runtime/YooAssets.cs @@ -177,6 +177,14 @@ namespace YooAsset #endregion #region 沙盒相关 + /// + /// 获取内置文件夹名称 + /// + public static string GetStreamingAssetBuildinFolderName() + { + return YooAssetSettings.StreamingAssetsBuildinFolder; + } + /// /// 获取沙盒的根路径 ///