mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-30 05:28:46 +00:00
Fixed window opening issues
修复了资源收集配置存在多个的时候,导致后续无法打开窗口的问题。
This commit is contained in:
@@ -37,6 +37,8 @@ namespace YooAsset.Editor
|
|||||||
Undo.undoRedoPerformed -= RefreshWindow;
|
Undo.undoRedoPerformed -= RefreshWindow;
|
||||||
Undo.undoRedoPerformed += RefreshWindow;
|
Undo.undoRedoPerformed += RefreshWindow;
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
_collectorTypeList = new List<string>()
|
_collectorTypeList = new List<string>()
|
||||||
{
|
{
|
||||||
$"{nameof(ECollectorType.MainAssetCollector)}",
|
$"{nameof(ECollectorType.MainAssetCollector)}",
|
||||||
@@ -47,8 +49,6 @@ namespace YooAsset.Editor
|
|||||||
_packRuleList = AssetBundleCollectorSettingData.GetPackRuleNames();
|
_packRuleList = AssetBundleCollectorSettingData.GetPackRuleNames();
|
||||||
_filterRuleList = AssetBundleCollectorSettingData.GetFilterRuleNames();
|
_filterRuleList = AssetBundleCollectorSettingData.GetFilterRuleNames();
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
VisualElement root = this.rootVisualElement;
|
VisualElement root = this.rootVisualElement;
|
||||||
|
|
||||||
// 加载布局文件
|
// 加载布局文件
|
||||||
|
|||||||
Reference in New Issue
Block a user