sketchfab / unity-plugin

291 stars 39 forks source link

Building error #12

Open guardsman111 opened 2 years ago

guardsman111 commented 2 years ago

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.List1[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.List1[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?

jesusracr commented 2 years ago

Para solucionar el error de SketchfabPlugin.dll

  1. Assets, Sketchfab For Unity, Libraries y seleccionar SketchfabPlugin.dll, en el inspector activar la casilla android. image

  2. Para el error de android Tv solo es necesario desactivar la opción android tv image