fix: error: SerializedObject target has been destroyed

close #267
pull/289/head
mob-sakai 2023-08-15 11:12:45 +09:00
parent e4998365c9
commit e93051603e
1 changed files with 1 additions and 0 deletions

View File

@ -430,6 +430,7 @@ namespace Coffee.UIExtensions
{
try
{
if (s_SerializedObject == null || !s_SerializedObject.targetObject) return;
if (s_SerializedObject.targetObjects.OfType<UIParticle>().Any(x => !x || !x.canvas)) return;
s_SerializedObject.Update();