Search Unity

Error: /jonas/WebSockets package - UnusedBytecodeStripper2

Discussion in 'Editor & General Support' started by Blarp, Mar 4, 2015.

  1. Blarp

    Blarp

    Joined:
    May 13, 2014
    Posts:
    270
    Last edited: Mar 4, 2015
  2. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    It seems that Unity 5.0 final has a bug where il2cpp fails compiling the websocket-sharp.dll included in the project to make it work in the editor. I believe that the il2cpp team has already fixed this bug, to be shipped in a 5.0 patch release some time soon.

    But you don't have to wait for that. The websocket-sharp.dll is only needed to make web sockets work in the editor and other platforms, and not actually needed on WebGL. So, simply select Plugins/websocket-sharp.dll in the editor, and, in the inspector, uncheck "Any Platform", and instead, check every platform *other then WebGL*. This will exclude it from the WebGL build (where it is not needed), and fix this error.
     
    Blarp likes this.
  3. Blarp

    Blarp

    Joined:
    May 13, 2014
    Posts:
    270
    Thank you for your time.

    Your solution worked perfectly for me. Thanks again!