Hi, I’ve been stuck on this problem for a while and haven’t been able to make headway on it. I’m trying to make it so the user can click a button to upload their saves to either drive or dropbox, and download them again later. I’ve been through tons of pages about APIs, but couldn’t find anything for a Unity PC game. The closest I got was this link (GitHub - midworld/unity-googledrive: Google Drive for Unity3D) which no longer works. Can anyone help me?
That’s not as easy as you might think. Google drive as well as Dropbox have their own unique APIs to access their services. Both require a quite complex authentication service. The question doesn’t really apply to Unity answers since it’s not a Unity specific question. Unity uses Mono and as such It’s just a question how you get it done in .NET / Mono. Google has a detailed tutorial for a console application.
The google API consists of several libraries. If they are 100% managed libraries you should be able to copy them one to one to Unity.
Take a look at this project on GitHub: GitHub - Elringus/UnityGoogleDrive: Google Drive SDK for Unity game engine
It works with all the major target platforms (including WebGL) and doesn’t use platform-specific precompiled libraries.