Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by jjesh · May 31, 2016 at 02:25 PM · saveloadonlinedropboxdrive

How would I upload and download save data to google drive or dropbox directly from Unity?

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 (https://github.com/midworld/unity-googledrive) which no longer works. Can anyone help me?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by Bunny83 · May 31, 2016 at 05:47 PM

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.

For dropbox it should be pretty much the same.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jjesh · Jun 02, 2016 at 07:45 PM 0
Share

Thanks for the informative reply! I've got the console application working, but how would I go about integrating it in to Unity?

avatar image
3

Answer by Elringus · Nov 15, 2017 at 08:53 PM

Take a look at this project on GitHub: https://github.com/Elringus/UnityGoogleDrive

It works with all the major target platforms (including WebGL) and doesn't use platform-specific precompiled libraries.

Comment
Add comment · Show 7 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ProtoTerminator · Dec 05, 2017 at 09:38 PM 0
Share

Nice one! Are you going to put that on the asset store and maintain it?

avatar image Elringus ProtoTerminator · Dec 05, 2017 at 09:43 PM 0
Share

Thanks! I'll maintain it on the GitHub for the time being; not sure if there any reason to put on the store (I'm not going to sell it anyway).

avatar image Crivens Elringus · Dec 09, 2017 at 12:26 PM 0
Share

Really good project. Nice one.

I've got it working, to upload a file to my drive storage, after a bit of code manipulation of a test script (think some plugins were clashing) with Win10.

I also successfully compiled for Android through cloud build, but running on my phone it just does the first loading sequence (upto 100%), then just sits there. Any idea what could be wrong?

This looks to hopefully handle the first half of my requirements (upload/download data on your own personal Google drive), but can you tell me if it would handle the second half, to basically upload/download data to someone else's Google drive public file? This should be handled at runtime, so if my server gives the app a new user to access, then it could link to there and read their public file (name also given by server).

Incidentally, I would put it on the store if I were you. If you included some working example scenes, then it's definitely worth buying.

Show more comments
avatar image mrthang · Sep 24, 2019 at 03:42 PM 0
Share

please help me, I run on ios 13 error: Request Failed: Authorization error. Thank you so much ;))

[1]: /storage/temp/146600-img-3896.png

img-3896.png (230.2 kB)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

50 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Save / Load high score online 2 Answers

How to script a Save/Load option on IPhone? 1 Answer

Saving Game Problem 1 Answer

PlayerPrefsX - Not Saving? 1 Answer

Game and Level State Logic 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges