mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-16 12:50:17 +00:00
1. BuildParameters.OutputRoot重命名为BuildOutputRoot 2. 新增了BuildParameters.StreamingAssetsRoot字段
28 lines
641 B
C#
28 lines
641 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using UnityEngine;
|
|
using UnityEditor;
|
|
|
|
namespace YooAsset.Editor
|
|
{
|
|
public static class AssetBundleBuilderHelper
|
|
{
|
|
/// <summary>
|
|
/// 获取默认的输出根路录
|
|
/// </summary>
|
|
public static string GetDefaultBuildOutputRoot()
|
|
{
|
|
string projectPath = EditorTools.GetProjectPath();
|
|
return $"{projectPath}/Bundles";
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取流文件夹路径
|
|
/// </summary>
|
|
public static string GetDefaultStreamingAssetsRoot()
|
|
{
|
|
return $"{Application.dataPath}/StreamingAssets/{YooAssetSettings.DefaultYooFolderName}/";
|
|
}
|
|
}
|
|
} |