mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-20 15:20:07 +00:00
fix #220
This commit is contained in:
@@ -65,9 +65,6 @@ namespace YooAsset.Editor
|
||||
|
||||
public void CreateGUI()
|
||||
{
|
||||
Undo.undoRedoPerformed -= RefreshWindow;
|
||||
Undo.undoRedoPerformed += RefreshWindow;
|
||||
|
||||
try
|
||||
{
|
||||
_collectorTypeList = new List<string>()
|
||||
@@ -347,6 +344,15 @@ namespace YooAsset.Editor
|
||||
Debug.LogError(e.ToString());
|
||||
}
|
||||
}
|
||||
public void OnEnable()
|
||||
{
|
||||
Undo.undoRedoPerformed += RefreshWindow;
|
||||
}
|
||||
public void OnDisable()
|
||||
{
|
||||
if (Undo.undoRedoPerformed != null)
|
||||
Undo.undoRedoPerformed -= RefreshWindow;
|
||||
}
|
||||
public void OnDestroy()
|
||||
{
|
||||
// 注意:清空所有撤销操作
|
||||
|
||||
Reference in New Issue
Block a user