Quantcast
Channel: Questions in topic: "exception"
Viewing all articles
Browse latest Browse all 470

error uploading file to parse with unity 5.1.1f1

$
0
0
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 !

Viewing all articles
Browse latest Browse all 470

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>