2022-03-01 10:44:12 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
using UnityEditor;
|
|
|
|
|
|
|
|
|
|
|
|
namespace YooAsset.Editor
|
|
|
|
|
|
{
|
2023-12-21 19:29:26 +08:00
|
|
|
|
public static class AssetBundleBuilderHelper
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2024-02-26 17:42:04 +08:00
|
|
|
|
/// 获取默认的输出根目录
|
2023-12-21 19:29:26 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static string GetDefaultBuildOutputRoot()
|
|
|
|
|
|
{
|
|
|
|
|
|
string projectPath = EditorTools.GetProjectPath();
|
|
|
|
|
|
return $"{projectPath}/Bundles";
|
|
|
|
|
|
}
|
2022-03-01 10:44:12 +08:00
|
|
|
|
|
2023-12-21 19:29:26 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获取流文件夹路径
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static string GetStreamingAssetsRoot()
|
|
|
|
|
|
{
|
2025-02-06 16:43:55 +08:00
|
|
|
|
return YooAssetSettingsData.GetYooDefaultBuildinRoot();
|
2023-12-21 19:29:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2022-03-01 10:44:12 +08:00
|
|
|
|
}
|