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; + } + /// /// 获取沙盒的根路径 ///