mirror of https://github.com/tuyoogame/YooAsset
fix #220
parent
2838289650
commit
67b2b886a8
|
@ -65,9 +65,6 @@ namespace YooAsset.Editor
|
||||||
|
|
||||||
public void CreateGUI()
|
public void CreateGUI()
|
||||||
{
|
{
|
||||||
Undo.undoRedoPerformed -= RefreshWindow;
|
|
||||||
Undo.undoRedoPerformed += RefreshWindow;
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_collectorTypeList = new List<string>()
|
_collectorTypeList = new List<string>()
|
||||||
|
@ -347,6 +344,15 @@ namespace YooAsset.Editor
|
||||||
Debug.LogError(e.ToString());
|
Debug.LogError(e.ToString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public void OnEnable()
|
||||||
|
{
|
||||||
|
Undo.undoRedoPerformed += RefreshWindow;
|
||||||
|
}
|
||||||
|
public void OnDisable()
|
||||||
|
{
|
||||||
|
if (Undo.undoRedoPerformed != null)
|
||||||
|
Undo.undoRedoPerformed -= RefreshWindow;
|
||||||
|
}
|
||||||
public void OnDestroy()
|
public void OnDestroy()
|
||||||
{
|
{
|
||||||
// 注意:清空所有撤销操作
|
// 注意:清空所有撤销操作
|
||||||
|
|
Loading…
Reference in New Issue