From e93051603e121732c92bcd89ded48087c2b0d7fb Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Tue, 15 Aug 2023 11:12:45 +0900 Subject: [PATCH] fix: error: SerializedObject target has been destroyed close #267 --- Scripts/Editor/UIParticleEditor.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Scripts/Editor/UIParticleEditor.cs b/Scripts/Editor/UIParticleEditor.cs index dfea488..f553e12 100644 --- a/Scripts/Editor/UIParticleEditor.cs +++ b/Scripts/Editor/UIParticleEditor.cs @@ -430,6 +430,7 @@ namespace Coffee.UIExtensions { try { + if (s_SerializedObject == null || !s_SerializedObject.targetObject) return; if (s_SerializedObject.targetObjects.OfType().Any(x => !x || !x.canvas)) return; s_SerializedObject.Update();