Hi. I wonder if you can write to a .txt file or create a new .txt file and write to that. And i also wonder how you can use textfield in GUI and then process it is an int eventually make a script that just takes the numbers.
Hi, Because Unity is using Mono, you can use the IO API of Mono with adding at the beginning of your C# code : using System.IO; and the Mono documentation : http://www.go-mono.com/docs/index.aspx?link=M:System.IO.TextWriter.Write(System.Decimal) and for example Code (csharp): TextWriter objWriter=new StreamWriter("C:\\test.txt"); objWriter.WriteLine("Hello World"); objWriter.WriteLine("Hello World"); objWriter.Flush(); objWriter.Close(); objWriter=null; Of course, it could depend on the location of the target file if you have read/write access to the directory.
of some reson i get an error when writing this: Code (csharp): void Start () { public string label; } Expecting ";"