Skip to content

Commit 1c8cbd1

Browse files
committed
Cleaner event handling in event strip scope
1 parent 4ae86a3 commit 1c8cbd1

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Assets/UdonSharp/Editor/UdonSharpUtils.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -758,10 +758,8 @@ public UdonSharpAssemblyLoadStripScope()
758758

759759
if (originalDelegates != null)
760760
{
761-
foreach (Delegate del in handler.GetInvocationList())
762-
handler -= (AssemblyLoadEventHandler)del;
763-
764-
info.SetValue(AppDomain.CurrentDomain, handler);
761+
foreach (Delegate del in originalDelegates)
762+
AppDomain.CurrentDomain.AssemblyLoad -= (AssemblyLoadEventHandler)del;
765763
}
766764
}
767765

0 commit comments

Comments
 (0)