Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

UNET Crashes WebGL & WebPlayer

Discussion in 'UNet' started by mischa2k, Dec 31, 2015.

  1. mischa2k

    mischa2k

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

    mischa2k

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

    Ashkan_gc

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

    Ashkan_gc

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