diff --git a/package/Editor/Images/Images.cs b/package/Editor/Images/Images.cs index e985d6b..4c188f9 100644 --- a/package/Editor/Images/Images.cs +++ b/package/Editor/Images/Images.cs @@ -41,6 +41,7 @@ private void OnGUI() private void OnDestroy() { + ImagesUI.OnClose(); ImagesUI.CloseSelectedTextureSection(); DataCache.instance.ClearAllImageData(); } @@ -100,6 +101,7 @@ public static void GetInferencesData(Action callback_OnDataGet = null) //why get { FetchTextureFor(imageData); } + callback_OnDataGet?.Invoke(); }); } diff --git a/package/Editor/Images/ImagesUI.cs b/package/Editor/Images/ImagesUI.cs index 5b2dc7e..3e3b723 100644 --- a/package/Editor/Images/ImagesUI.cs +++ b/package/Editor/Images/ImagesUI.cs @@ -478,10 +478,14 @@ private void RenderLoadingBox(Rect boxRect) public void CloseSelectedTextureSection() { - //ClearData(); selectedTexture = null; } + public void OnClose() + { + isLoading = false; + } + #endregion }