Update runtime code

pull/51/head
hevinci 2022-10-18 10:13:04 +08:00
parent f2422ed16c
commit 90ad292b84
3 changed files with 10 additions and 2 deletions

View File

@ -49,7 +49,7 @@ namespace YooAsset
/// <summary> /// <summary>
/// 内置资源目录名称 /// 内置资源目录名称
/// </summary> /// </summary>
public const string StreamingAssetsRootFolder = "BuildinFiles"; public const string StreamingAssetsBuildinFolder = "BuildinFiles";
/// <summary> /// <summary>

View File

@ -30,7 +30,7 @@ namespace YooAsset
/// </summary> /// </summary>
public static string MakeStreamingLoadPath(string path) 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);
} }
/// <summary> /// <summary>

View File

@ -177,6 +177,14 @@ namespace YooAsset
#endregion #endregion
#region 沙盒相关 #region 沙盒相关
/// <summary>
/// 获取内置文件夹名称
/// </summary>
public static string GetStreamingAssetBuildinFolderName()
{
return YooAssetSettings.StreamingAssetsBuildinFolder;
}
/// <summary> /// <summary>
/// 获取沙盒的根路径 /// 获取沙盒的根路径
/// </summary> /// </summary>