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>
public const string StreamingAssetsRootFolder = "BuildinFiles";
public const string StreamingAssetsBuildinFolder = "BuildinFiles";
/// <summary>

View File

@ -30,7 +30,7 @@ namespace YooAsset
/// </summary>
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>

View File

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