This package allows you to use Google Sheet as a database for Borrit
Use the package manager in Unity to install this package from its git url https://github.com/rthery/borrit-gsheet.git
Because Unity packages don't support git dependency, you will need to install Borrit 2.1.0
(or later) package manually.
This method can be interesting if you want all your users to be authenticated with their Google account. It's very cumbersome to set up for all your devs though.
- Go to Google Drive and create a Spreadsheet with at least one sheet sheet in it with the name of your project (Application.productName)
- Share as Editor with Google accounts who will use Borrit
- Follow the instructions here to create an application that will allow you to access Google Sheets
- Download the OAuth 2.0 credentials JSON file you'll obtained through Google Cloud Console
- Place this file somewhere in your project, a good place would be in
ProjectSettings\Packages\io.github.borrit
beside the other settings of Borrit, if your repository is not public - In Unity, Open Borrit settings, Edit > Project Settings > Borrit
- Select 'Google Sheets' Database
- Select the credentials.json file in the Credentials field
- Input the spreadsheet id
Once the project is setup and credentials.json available somewhere
- Open Borrit settings, Edit > Project Settings > Borrit
- Select a username if it's empty
- Make sure Credentials file is present, otherwise select it
- Create your authentication token
- Connect and you are ready to use Borrit