fungus

Open full view…

Unity 5 .dll plugin conflict with webplayer builds

Shane Whelan
Wed, 29 Apr 2015 18:43:10 GMT

This is a known problem in Unity 5. I've been trying to make a webGL build and the third party reorderable list is the only .dll in the assets folder anywhere. The error log itself is a beaut: NullReferenceException: Object reference not set to an instance of an object UnityEditor.Modules.DefaultPluginImporterExtension+<GetCompatiblePlugi ns>c__AnonStorey65.<>m__E3 (UnityEditor.PluginImporter imp) (at C:/buildslave/unity/build/Editor/Mono/Modules/DefaultPluginImporterExt ension.cs:133) System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[UnityEditor.PluginImporter].MoveNext () System.Collections.Generic.List`1[UnityEditor.PluginImporter].AddEnumerable (IEnumerable`1 enumerable) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class /corlib/System.Collections.Generic/List.cs:128) System.Collections.Generic.List`1[UnityEditor.PluginImporter]..ctor (IEnumerable`1 collection) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class /corlib/System.Collections.Generic/List.cs:65) System.Linq.Enumerable.ToArray[PluginImporter] (IE numerable`1 source) UnityEditor.Modules.DefaultPluginImporterExtension.GetCompatiblePlugin s (System.String buildTargetName) (at C:/buildslave/unity/build/Editor/Mono/Modules/DefaultPluginImporterExt ension.cs:133) UnityEditor.Modules.DefaultPluginImporterExtension.CheckFileCollisions (System.String buildTargetName) (at C:/buildslave/unity/build/Editor/Mono/Modules/DefaultPluginImporterExt ension.cs:157) UnityEditorInternal.PluginsHelper.CheckFileCollisions (BuildTarget buildTarget) (at C:/buildslave/unity/build/Editor/Mono/Plugins/PluginsHelper.cs:25) UnityEditor.HostView:OnGUI()

Shane Whelan
Wed, 29 Apr 2015 18:43:30 GMT

What would happen if I deleted it?

chrisgregan
Wed, 29 Apr 2015 22:46:36 GMT

I just tried building both beta 6 and beta 7 examples for WebGL in Unity 5.0.1 and they built fine. Are you building just the standard Fungus & FungusExample files or is this your game project. One possibility might be if you're using the Reorderable List control in a class that should only be built for the Editor but is actually getting build for the Editor and runtimes. You can make a class only build for the Editor by putting it inside an Editor folder in your project. That's only a guess though! If you're still stuck send me on the project and I'll try to build it here.

Shane Whelan
Thu, 30 Apr 2015 17:16:33 GMT

Exact same project, shared in Dropbox builds to WebGL fine on a Mac. I've made a new empty project and I added Fungus first and it built again. There are a few other external packages to add as well, then I'm adding my own project back piece by piece. Working so far