Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

UNET Crashes WebGL & WebPlayer

Discussion in 'Multiplayer' started by vis2k, Dec 31, 2015.

  1. vis2k

    vis2k

    Joined:
    Sep 4, 2015
    Posts:
    3,839
    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:
    1,030
    Try disabling engine stripping in player settings > other settings, it should fix it.
     
  3. vis2k

    vis2k

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

    Ashkan_gc

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

    Ashkan_gc

    Joined:
    Aug 12, 2009
    Posts:
    1,030
    @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