elringus / unity-google-drive

Google Drive SDK for Unity game engine
https://forum.unity.com/threads/515360
MIT License
404 stars 64 forks source link

How to add support for supportsAllDrives? #96

Closed ROBYER1 closed 2 years ago

ROBYER1 commented 2 years ago

So in an earlier issue which has automatically closed, I was unable to upload files to shared drives in the actual build (works fine in editor though). https://github.com/Elringus/UnityGoogleDrive/issues/95. Instead of uploading to the shared folder, the files I make end up in my local drive in the build, but in Editor they upload to the shared folder just fine (the code in the build is identical).

Is there a way to add support for 'supportsAllDrives=true' which is required to have write permissions to shared folders? I can't see any mention of it in the plugin/github repo

The 'Shared with me collection' link here in the setup guide is dead so I'm at a loss as to what else I can do to make this work with shared drives if the api has changed.

ROBYER1 commented 2 years ago

More reference for this here https://stackoverflow.com/questions/63043156/cannot-interact-with-shared-drives-files-python-google-drive-api-v3

ROBYER1 commented 2 years ago

After much investigation and cross-comparing with the sample scenes in this repo, I realised this issue was caused by Managed Stripping Level being higher than 'Low', I have updated the readme for it here in this PR. I hope this is useful to other people