mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-14 19:40:47 +00:00
Update runtime code
This commit is contained in:
@@ -49,7 +49,7 @@ namespace YooAsset
|
||||
/// <summary>
|
||||
/// 内置资源目录名称
|
||||
/// </summary>
|
||||
public const string StreamingAssetsRootFolder = "BuildinFiles";
|
||||
public const string StreamingAssetsBuildinFolder = "BuildinFiles";
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -177,6 +177,14 @@ namespace YooAsset
|
||||
#endregion
|
||||
|
||||
#region 沙盒相关
|
||||
/// <summary>
|
||||
/// 获取内置文件夹名称
|
||||
/// </summary>
|
||||
public static string GetStreamingAssetBuildinFolderName()
|
||||
{
|
||||
return YooAssetSettings.StreamingAssetsBuildinFolder;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取沙盒的根路径
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user