Unity3dSampleTemplate icon indicating copy to clipboard operation
Unity3dSampleTemplate copied to clipboard

WebGL build

Open AmirArdroudi opened this issue 3 years ago • 14 comments

Hey guys, I have some errors on building for webgl. any idea?

ArgumentException: The Assembly WindowsBase is referenced by System.Reactive ('Assets/Plugins/System.Reactive.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 <7587a42c8322471cbc42b27c9b8eab3c>: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 <7587a42c8322471cbc42b27c9b8eab3c>:0) UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, UnityEditor.BuildTarget target) (at <7587a42c8322471cbc42b27c9b8eab3c>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

AmirArdroudi avatar Aug 05 '21 13:08 AmirArdroudi

is system.reactive included on nethereum? try to use Unity .NET dll instead

StinkySteak avatar Aug 06 '21 05:08 StinkySteak

I have included all dlls so everyone can experiment at their own will. I might create different versions of the packaged dlls (advance mode with all).

juanfranblanco avatar Aug 06 '21 06:08 juanfranblanco

I have included all dlls so everyone can experiment at their own will. I might create different versions of the packaged dlls (advance mode with all).

I've just clone this repo and wanted to build it for WebGL without any changes in dlls. And yeah, system.reactive is included in the repo. I've also tried to build it with .NET 4 in player settings, but I get the same error every time.

AmirArdroudi avatar Aug 06 '21 08:08 AmirArdroudi

@AmirArdroudi it is my bad when you are working on webgl you won't need half of the dlls, I will make a webgl specific version.

juanfranblanco avatar Aug 09 '21 07:08 juanfranblanco

@juanfranblanco Hey, still seeing the issue. However It sounds like simply disabling some DLLs will allow it to work properly.

Capture

You wont need to create a new repo or a webgl specific version. You can simply toggle these options for the build versions you would like.

JacobHomanics avatar Aug 30 '21 15:08 JacobHomanics

Yes, the DLLs are added for completeness. So just a minimal set for users getting started as they don't know which ones might be ideal.

juanfranblanco avatar Aug 30 '21 17:08 juanfranblanco

Library\Bee\artifacts\WebGL\build\debug_WebGL_wasm\build.js: undefined symbol: sendfile

This is the issue i am receiving when building for WebGL, what do i need to do. I just cloned and build the exact project.

akshay310599 avatar Dec 22 '21 17:12 akshay310599

for the "Library\Bee\artifacts\WebGL\build\debug_WebGL_wasm\build.js: undefined symbol: sendfile"

Did anyone found anything?

minutd97 avatar Jul 14 '22 13:07 minutd97

Library\Bee ?

juanfranblanco avatar Jul 14 '22 13:07 juanfranblanco

There is another template https://github.com/Nethereum/Nethereum.Unity.Webgl

juanfranblanco avatar Jul 14 '22 13:07 juanfranblanco

on library bee https://forum.unity.com/threads/library-bee-error-when-trying-to-build-for-webgl.1220706/

juanfranblanco avatar Jul 14 '22 13:07 juanfranblanco

For me it was something else, i had the library/bee problem after upgrading to unity 2021, after creating a new project and importing plugin by plugin, asset by asset, building everytime i was adding something new after 2 hours and a half it finally worked with full project migrated. I really appreciate your answer man thanks anyway!

minutd97 avatar Jul 14 '22 15:07 minutd97

Glad you are sorted, what a pain the migration

juanfranblanco avatar Jul 14 '22 15:07 juanfranblanco

There is another template https://github.com/Nethereum/Nethereum.Unity.Webgl

This is for Unity 2021+, but not for 2020. Is there any other working templates for 2020?

Yuriy-Ihor avatar Jul 22 '22 19:07 Yuriy-Ihor