mirror of https://github.com/tuyoogame/YooAsset
Update runtime code
parent
f2422ed16c
commit
90ad292b84
|
@ -49,7 +49,7 @@ namespace YooAsset
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 内置资源目录名称
|
/// 内置资源目录名称
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string StreamingAssetsRootFolder = "BuildinFiles";
|
public const string StreamingAssetsBuildinFolder = "BuildinFiles";
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -177,6 +177,14 @@ namespace YooAsset
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 沙盒相关
|
#region 沙盒相关
|
||||||
|
/// <summary>
|
||||||
|
/// 获取内置文件夹名称
|
||||||
|
/// </summary>
|
||||||
|
public static string GetStreamingAssetBuildinFolderName()
|
||||||
|
{
|
||||||
|
return YooAssetSettings.StreamingAssetsBuildinFolder;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取沙盒的根路径
|
/// 获取沙盒的根路径
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue