WebGL doesn't work (in last beta too) despite added new feature to it

Its nice that now you can compile either for "speed" or "size" whatever these options mean. Its that build speed or game performance?

On last beta and this alpha even empty projects dont work when uploaded to WEBGL. it stops loading at 90%.

tried few hostings, including my and itch.io, effect the same.

1 Like

Do you have a bug report you can share here for the team to track?

@mailfromthewilds I just put my main webgl project into the 2020.1.5 beta, and it built up just fine, just tried this alpha and it seems ok too (sillygames.online/temp)

What compression did you use? I did read in the beta there were some possible issues with the compression builds


it works whhen i turnd compression off. both brotli and gzip didnt work

I believe thats a known issue, as there is either some server config, or something else that maybe involved..

1 Like

You need to setup web.config correctly, and install rewrite for your IIS

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
            <staticContent>
                    <remove fileExtension=".unityweb" />
                    <mimeMap fileExtension=".unityweb" mimeType="application/octet-stream" />
            </staticContent>
            <rewrite>
                    <outboundRules>
                        <rule name="Append gzip Content-Encoding header">
                            <match serverVariable="RESPONSE_Content-Encoding" pattern=".*" />
                            <conditions>
                                    <add input="{REQUEST_FILENAME}" pattern="\.unityweb$" />
                            </conditions>
                            <action type="Rewrite" value="gzip" />
                        </rule>
                    </outboundRules>
            </rewrite>
    </system.webServer>
</configuration>

It seems to need something on apache too.. see https://docs.unity3d.com/Manual/webgl-deploying.html