hi, please give me examples how to save scores in external file such as .txt or .xml. Is this posible in javascript?
You need to use the javascript library.
Try to take a look here !!!
thank you but unity’s javascript is another language.
It doesn’t know standart javascript operators
sorry but I use C# with Unity and not javascript so I didn’t know that it is not the standard one.
You would use System.IO as in C#
Just import it and use the corresponding functionality (documented for C# and other languages in the msdn documentations as well as the mono docs)
Well, i have been working on the same, here is my post http://forum.unity3d.com/viewtopic.php?t=28549&highlight=xml
though it has some bugs it was fixed. there is another one on the Unity Wiki that saves the player position, you can look at it and use it as a template, and yes, they are in Unity Javascript
than you guys for help
Narlix, I don’t know well scripting. Can you give me simple example which saves only player name and score.
And how to read from file and award to variable. ![]()