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

Cannot run the webgl in browser and questions about BoxCollider

Discussion in '2020.1 Beta' started by zjdx1998_unity, Nov 4, 2019.

  1. zjdx1998_unity

    zjdx1998_unity

    Joined:
    Jun 1, 2019
    Posts:
    1
    Hello everyone, I encountered an error when I run the index.html in the browser(both Edge & Chrome) which was built in WebGL mode. But I ran successfully when I choose to Build and Run, which actually run in a node server. The error info from the browser is `SCRIPT1014 Invalid character ` and `SCRIPT5009: createUnityFramework is not defined'. In addition, my unity version is 2020.1.0.a11.
    Another question comes up when I test the mouse click event after Build and Run in the node server that the click event totally failed, and the console log was: AddComponent asking for `BoxCollider` which is not a Unity engine type.

    I really hope you guys can help me with these two problems. Thanks!
     
  2. gonglin

    gonglin

    Joined:
    Apr 12, 2014
    Posts:
    5
    Me too, I have encountered the same error "SCRIPT5009: createUnityFramework is not defined" on WebGL ,and Unity's version is 2020.1.0a9.
     
  3. Buck1984

    Buck1984

    Joined:
    Mar 5, 2017
    Posts:
    1
  4. arbainrahat

    arbainrahat

    Joined:
    Jul 29, 2020
    Posts:
    2
    SCRIPT1014: SCRIPT1014: Invalid character I also Face this error in unity 2020.1, When I run in Micresoft Edge