Description
I'm trying to build an app that allows user to view sketchfab models, and potentially import them into the scene and use them.
It works at runtime, I can see the models in my interface. Now I'm just trying to build it and I keep getting this error -
ArgumentException: The Assembly UnityEditor is referenced by SketchfabPlugin ('Assets/SimplyVideo/Packages/3DModelImporting/Sketchfab For Unity/Dependencies/Libraries/SketchfabPlugin.dll'). But the dll is not allowed to be included or could not be found. UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List
1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at <1daab1e8a63c4d30bee3bfa8949b8ee5>:0) UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List
1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at <1daab1e8a63c4d30bee3bfa8949b8ee5>:0) UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, UnityEditor.BuildTarget target) (at <1daab1e8a63c4d30bee3bfa8949b8ee5>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
It appears even though I've removed any editor references in the code, there are still editor references in the .dll which cause unity to break when building.
Anyone know more about what's up this this, and if there's a workaround or a fix they know of?