hi, i am relatively knew to unity and i was wondering if someone could tell me how to:
- tell unity to create a new txt file
- tell unity to write the location of a new object on the txt file
- tell unity to read the location of a previously created object that is written on the txt file
- save and load txt files
this would be very helpful if it were in Javascript
Unity has no build-in functions for reading and writing objects to text files. All the standard .NET I/O functionality is available, but you would have to roll your own as far as writing out the format and reading the format back in. There have been posts about writing to text files, so Google “unity3d writing to text files”. As a method of saving out files, you might look at Unity Serializer instead of text files.