diff --git a/Assets/YooAsset/Editor/AssetBundleGrouper/AssetBundleGrouperWindow.cs b/Assets/YooAsset/Editor/AssetBundleGrouper/AssetBundleGrouperWindow.cs index 62b5794..6526414 100644 --- a/Assets/YooAsset/Editor/AssetBundleGrouper/AssetBundleGrouperWindow.cs +++ b/Assets/YooAsset/Editor/AssetBundleGrouper/AssetBundleGrouperWindow.cs @@ -402,7 +402,13 @@ namespace YooAsset.Editor // Foldout var foldout = element.Q("Foldout1"); - RefreshFoldout(foldout, selectGrouper, collector); + foldout.RegisterValueChangedCallback(evt => + { + if (evt.newValue) + RefreshFoldout(foldout, selectGrouper, collector); + else + foldout.Clear(); + }); // Remove Button var removeBtn = element.Q