![]() Add full URIs to the WebGL builds locations (not required for platforms other than WebGL).Add redirect URI for the local loopback requests:.Authorised JavaScript origins: enter host names which will serve WebGL builds (not required for platforms other than WebGL).Select Web application for 'Application type', give your app a name and enter the following restrictions:.Navigate to Credentials on the menu on the left side of your screen tab and click Create credentials -> OAuth client ID.Insert necessary information and click Save and Continue (After this you will see Scopes tab, at this point just click Cancel).From the menu on the left side of your screen select OAuth consent screen tab, choose User Type and click Create.On Dashboard click the ≡ menu icon and select APIs & Services.Fill in all of the details of your project and then continue to the next step.Select Create a new project and click continue.Click Create Google Drive API app button web-browser will open URL to setup the app:.In the Unity editor navigate to Edit -> Settings -> Google Drive GoogleDriveSettings.asset file will be automatically created at Assets/UnityGoogleDrive/Resources, select the file (if it wasn't selected automatically).Make sure 'Managed Stripping Level' in no higher than Low otherwise, necessary JSON parsing will not work and the plugin may misbehave in builds while working fine in the editor.NET 2.0 profile (not subset) to prevent JSON parsing issues on AOT platforms. NET 3.5 scripting runtime, make sure to set API compatibility level to the full. All the credentials are stored in a scriptable object editor script provides shortcuts to create and manage Google Console App, allows to parse credentials JSON to skip manual copy-pasting and edit common settings:Īutomated integration tests cover the main features: Three authentication schemes are used: browser redirection for WebGL builds, custom URI for iOS/Android and local loopback requests for other platforms. PlayServicesResolver dependency file is provided in the distributed package to automatically resolve dependencies. Supports all the major platforms: Windows, Mac, Linux, iOS, Android and WebGL.ĪppAuth-Android and AppAuth-iOS native libraries are used to perform authentication on Android and iOS respectively for better user experience accompanying native client sources: UnityGoogleDriveAndroid, UnityGoogleDriveIOS. Google Drive API library for listing, searching, creating, uploading, editing, copying, downloading, deleting and exporting files on the user's drive from within Unity game engine. In case you're not familiar with the Google Drive API, please read through the official documentation and FAQ, before using this package or opening new issues. Use UPM to install the package via the following git URL: or download and import UnityGoogleDrive.unitypackage manually.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |