Search Unity

UNET Crashes WebGL & WebPlayer

Discussion in 'Connected Games' started by vis2k, Dec 31, 2015.

  1. vis2k

    vis2k

    Joined:
    Sep 4, 2015
    Posts:
    3,445
    Hello everyone,
    it seems like UNET crashes WebGL and WebPlayer with even basic examples. I tried the move.zip example from here: http://forum.unity3d.com/threads/unet-sample-projects.331978/ and it crashes immediately after hosting a game, with a long stack trace of weird JavaScript.

    Does anyone else experience this issue or know a fix for it? Tried it with Unity 5.3 and Windows 8.1 64 Bit and Firefox.
     
  2. Ashkan_gc

    Ashkan_gc

    Joined:
    Aug 12, 2009
    Posts:
    937
    Try disabling engine stripping in player settings > other settings, it should fix it.
     
  3. vis2k

    vis2k

    Joined:
    Sep 4, 2015
    Posts:
    3,445
    That fixed it, thanks a lot!
     
  4. Ashkan_gc

    Ashkan_gc

    Joined:
    Aug 12, 2009
    Posts:
    937
    Glad it helped and happy new year :)
     
  5. Ashkan_gc

    Ashkan_gc

    Joined:
    Aug 12, 2009
    Posts:
    937
    @seanr Please add stuff to the docs of WebGL about assemblies which we should add to link.xml to be able to use engine code stripping and uNet for webGL and IOS at the same time. I still did not test on IOS but on WebGL, If I enable engine stripping it crashes. And it happened to others as well.
     
unityunity