Update AssetBundleBuilder

This commit is contained in:
hevinci
2022-07-13 11:59:15 +08:00
parent ea9b8874cc
commit e68ece6925
2 changed files with 26 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ using System.IO;
using System.Text;
using UnityEngine;
using UnityEditor;
using UnityEditor.SceneManagement;
namespace YooAsset.Editor
{
@@ -265,6 +266,20 @@ namespace YooAsset.Editor
}
#endregion
#region SceneUtility
public static bool HasDirtyScenes()
{
var sceneCount = EditorSceneManager.sceneCount;
for (var i = 0; i < sceneCount; ++i)
{
var scene = EditorSceneManager.GetSceneAt(i);
if (scene.isDirty)
return true;
}
return false;
}
#endregion
#region
/// <summary>
/// 创建文件所在的目录