Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Uncaught ReferenceError: unityFramework is not defined at HTMLScriptElement.script.onload

Discussion in '2020.2 Beta' started by siliwangi, Sep 15, 2020.

Thread Status:
Not open for further replies.
  1. siliwangi

    siliwangi

    Joined:
    Sep 25, 2009
    Posts:
    303
    Tried 2020.1.5 and 2020.2.0b2.

    • Using Gzip compression couldnot load eventough using new apache mime rules.
    • Disabled compression could load but getting the following from chrome :
    • Using Brotli on 2020.2.0b2, same error.
    Brotli and Gzip are throwing the same error when hosted remotely on Apache (not on localhost)
    If hosted in nginx remotely i am managed to load the scene but there are errors in the Chrome/Firefox developer tools :
    Nginx rules :
    Code (csharp):
    1.  
    2.             location ~* \.(wasm)$ {
    3.             add_header Content-Type application/wasm;
    4.             }
    5.          
    6.             location ~* \.(data.gz|symbols.json.gz)$ {
    7.             add_header Content-Encoding gzip;
    8.             add_header Content-Type application/octet-stream;
    9.             }
    10.             location ~* \.(wasm.gz)$ {
    11.             add_header Content-Encoding gzip;
    12.             add_header Content-Type application/wasm;
    13.             }
    14.             location ~* \.(js.gz)$ {
    15.             add_header Content-Encoding gzip;
    16.             add_header Content-Type application/javascript;
    17.             }
    18.  
     
    Last edited: Sep 15, 2020
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,125
Thread Status:
Not open for further replies.