- Home /
Question by
billarhos72 · May 22, 2015 at 02:33 PM ·
scripting problemwebgl
Crash in webgl (deploy)
Hi
Is something wrong with that script code that make Unity not able to export for webgl platform (crash on deploying process)?
Tip: Same code always can be deployed for web player without any crashes.
Using 5.0.0f4 (windows 7)
var windowRect : Rect = Rect (200, 600, 600, 500);
var doWindow0 : boolean = false;
var txturl : String;
var baseUrl : String;
var txtload : WWW;
var products : String[];
var dlCompleted : boolean=false;
var text : String;
function Start()
{
txturl = baseUrl+"/exports/export.txt";
txtload = new WWW(txturl);
yield txtload;
text=txtload.text.Replace("\n","");
products=text.Split(["<product>"], System.StringSplitOptions.None);
dlCompleted = true;
}
Thanks
Comment
Your answer

Follow this Question
Related Questions
Web GL and Unity editor defferent behaviour 0 Answers
Unity 5.6 webgl script error 4 Answers
WebGL audio and Slider Interaction 0 Answers
script error in web GL 1 Answer