MerlinVR / UdonSharp

An experimental compiler for compiling C# to Udon assembly
MIT License
671 stars 87 forks source link

Fix for ReflectionTypeLoadException #128

Closed kawashirov closed 8 months ago

kawashirov commented 2 years ago

This is minor fix for ReflectionTypeLoadException.

Some large VRChat projects can contain problematic and/or outdated 3rd party assemblies that can not be fully loaded. This does not cause any compilation errors or any other kind of problems in Unity Editor or VRCSDK if broken features is not used. However, if this kind of assembly is inspected, then ReflectionTypeLoadException will be thrown.

In case of UdonSharp, this breaks udon scripts compilation at all, as UdonSharp inspects all loaded assemblies. I meet this error by myself before. And I meet people who encounter this problem time-to-time. I hope this will increase stability of projects using lots of assets from different sources.