Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

WebAssembly "ReferenceError: sendMessage is not defined"

Discussion in '5.6 Beta' started by bigbrainz, Mar 14, 2017.

  1. bigbrainz

    bigbrainz

    Joined:
    Jul 21, 2015
    Posts:
    177
    We're getting that error in our WebAssembly builds running in Firefox 64-bit and Canary. Built using 5.6.0b11.

    Has Unity or WebAssembly changed how Unity WebGL's javascript code talks to c# code? We have been using sendMessage, but it is not working in WebAssembly.

    It is still in the documentation for 5.6b.

    Thanks!
     
  2. bigbrainz

    bigbrainz

    Joined:
    Jul 21, 2015
    Posts:
    177
    OK, we made a WebGL build in 5.6.0b11 WITHOUT WebAssembly and we still get this error.
     
  3. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,071
    afaik nothing changed for that on our end. Can you please send a repro bug report and ping the case number here? Then it'll get looked at fastest.
     
  4. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,071
  5. bigbrainz

    bigbrainz

    Joined:
    Jul 21, 2015
    Posts:
    177
    Perfect--that fixed it. Thank you!