I am using Parse for a game that I'm developing. Everything is ok until I try to uplad a file, no matters his extension I always get this Error : "get_version can only be called from main thread"!
![alt text][1]
[1]: /storage/temp/50285-764075parseerror.png
byte[] data = System.Text.Encoding.UTF8.GetBytes("Working at Parse is great!");
ParseFile file = new ParseFile("resume.txt", data);
Task saveTask = file.SaveAsync();
var player = new ParseObject ("FilesLibrary");
player ["Number"] = 155;
player ["Files"] = file;
saveTask = player.SaveAsync();
I have tried to place this script in different places :
{ Main, Start, Update, Awake, Button's OnClick event, Couroutine, Queue ... }
But I always get the same problem.
And the most weird thing is that the same script works fine with unity 4.6 but not 5.1 !
↧