Update streaming root folder

pull/51/head
hevinci 2022-10-17 15:07:25 +08:00
parent e3f1ad79a8
commit 8b6cd759ef
3 changed files with 8 additions and 2 deletions

View File

@ -22,7 +22,7 @@ namespace YooAsset.Editor
/// </summary>
public static string GetStreamingAssetsFolderPath()
{
return $"{Application.dataPath}/StreamingAssets/YooAssets/";
return $"{Application.dataPath}/StreamingAssets/{YooAssetSettings.StreamingAssetsRootFolder}/";
}
/// <summary>

View File

@ -46,6 +46,12 @@ namespace YooAsset
/// </summary>
public const string UnityShadersBundleName = "unityshaders";
/// <summary>
/// 内置资源目录名称
/// </summary>
public const string StreamingAssetsRootFolder = "BuildinFiles";
/// <summary>
/// 忽略的文件类型
/// </summary>

View File

@ -30,7 +30,7 @@ namespace YooAsset
/// </summary>
public static string MakeStreamingLoadPath(string path)
{
return StringUtility.Format("{0}/YooAssets/{1}", UnityEngine.Application.streamingAssetsPath, path);
return StringUtility.Format("{0}/{1}/{2}", UnityEngine.Application.streamingAssetsPath, YooAssetSettings.StreamingAssetsRootFolder, path);
}
/// <summary>