Question by
Prof_Willow · Oct 27, 2017 at 09:32 PM ·
dropbox
Dropbox to Unity
I have the files to a game I made in Dropbox, but I don't know how to load it to on Unity
Comment
Answer by trueguy · Sep 04, 2018 at 07:12 AM
For anyone who will have problem like this: I've created asset for easy syncing files from Dropbox and realtime tracking of changes: DropboxSync - Asset Store
Example usage:
// Download Jpeg image from Dropbox (or used cached if no updates)
// and receive it as Texture2D object.
DropboxSync.Main.GetFile<Texture2D>("/DropboxSyncExampleFolder/image.jpg", (res) => {
if(res.error){
Debug.LogError("Error getting picture from Dropbox: "+res.errorDescription);
}else{
Debug.Log("Received picture from Dropbox!");
var tex = res.data;
UpdatePicture(tex);
}
}, useCachedFirst:true);