Hello,
I'm having some trouble with the WWW class:
WWW test = new WWW("http://localhost:8888/StreamingAssets/Scenario/ScenarioTest.snr");
while (!test.isDone)
Debug.Log(test.bytesDownloaded);
scenario.LoadFromString(test.text);
When I run this part of code in the Editor, it perfectly works, but in the WebGL exports, test.bytesDownloaded doesn't increase and test.isDone is never true.
In the .htaccess file I've got this:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteRule (.*)Release(.*)\.js $1Compressed$2\.jsgz [L]
RewriteRule (.*)Release(.*)\.data $1Compressed$2\.datagz [L]
RewriteRule (.*)Release(.*)\.mem $1Compressed$2\.memgz [L]
RewriteRule (.*)Release(.*)\.unity3d $1Compressed$2\.unity3dgz [L]
AddEncoding gzip .jsgz
AddEncoding gzip .datagz
AddEncoding gzip .memgz
AddEncoding gzip .unity3dgz
Header set Access-Control-Allow-Credentials "true"
Header set Access-Control-Allow-Headers "Accept, X-Access-Token, X-Application-Name, X-Request-Sent-Time"
Header set Access-Control-Allow-Methods "GET, POST, OPTIONS"
Header set Access-Control-Allow-Origin "*"
↧