|
I am currently working on the ways to store the location and tags of the game objects online and trying to load them dynamically on calling them. I looked into this XML wiki - http://unifycommunity.com/wiki/index.php?title=Save_and_Load_from_XML and am using the JavaScript included there. The script works properly when I run it in the editor and also as a stand alone app. But it doesn't work on the browser. Should I rewrite the script to actually use WWW to load the xml file or am I doing something wrong? Am currently using the script with its File IO The Application.dataPath for some reason does not work with the web browser.
(comments are locked)
|
|
For all other new users who want to know what I did to use XML on web player- I loaded the XML file using the WWW class to load the URL.
For writing back to the XML, I had to write a PHP file and called it using the WWWForm.
(comments are locked)
|
|
You can't use local file I/O in the web player for security reasons. Yeah. I figured that out. Are there any other methods to do this on the web player without using too much resource? All that I need to do is, get number of objects and the tags with location to display them on the screen. The user can modify location on screen though.
Jul 19 '10 at 08:02 PM
diabloroxx
@diabloroxx: you can use the WWW class and get WWW.data.
Jul 19 '10 at 08:19 PM
Eric5h5
(comments are locked)
|
