Google Sheets [Definitive Infinity Media]
A package for Unity that syncs data between a local CSV and a Google Sheet
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
About The Project
A package for Unity that syncs data between a local CSV and a Google Sheet. Use it to keep editor-side data (such as localisation, game data, and balance tables) in sync with a shared spreadsheet.
- Upload/Download — push local CSV changes to a sheet or pull updates from a sheet
- CSV → ScriptableObject — generate ScriptableObject assets from spreadsheet rows
- Multiple Sheet support — target individual sheets within a workbook
Getting Started
Follow one of the installation methods below to add this package to your Unity project.
Prerequisites
Unity 2021.1 or later is required to use this package.
Before syncing, you will need:
- A Google Cloud project with the Google Drive API and Google Sheets API enabled.
- A service account with a JSON key.
- The Google Sheet shared with the service account's email address (Editor role).
- The spreadsheet ID and individual sheet IDs from the Google Sheets URL:
https://docs.google.com/spreadsheets/d/[SPREADSHEET_ID]/edit?gid=[SHEET_ID]#gid=[SHEET_ID]
Installation
Method 1: Package Manager (Git URL)
Open the Package Manager window in Unity (Window > Package Manager).
Click the [+] button in the top-left corner and select Add package from git URL.
Enter the following URL and click Add:
https://github.com/Definitive-Infinity-Media/com.definitiveinfinitymedia.googlesheets.git
Method 2: Scoped Registry
Open Edit > Project Settings > Package Manager.
Add a scoped registry with the following details:
- Name: Definitive Infinity Media
- URL: https://npm.pkg.github.com/@Definitive-Infinity-Media
- Scope(s): com.definitiveinfinitymedia
Create a
.upmconfig.tomlfile in your user root directory:- Windows:
%USERPROFILE%\.upmconfig.toml - macOS/Linux:
~/.upmconfig.toml
- Windows:
Add your GitHub personal access token:
[npmAuth."https://npm.pkg.github.com/@Definitive-Infinity-Media"] token = "YOUR_GITHUB_PAT" email = "your-email@example.com" alwaysAuth = trueAdd the package to your
Packages/manifest.json:"com.definitiveinfinitymedia.googlesheets": "1.3.3"
Learn more: Creating private packages for your Unity project.
Method 3: Direct Clone (for development)
Clone this repository directly into your project's Packages folder:
git clone https://github.com/Definitive-Infinity-Media/com.definitiveinfinitymedia.googlesheets.git
Usage
- Configure the Google Cloud project, service account, and sheet IDs in the package preferences.
- Use the editor window or API to upload/download CSV data between Unity and Google Sheets.
- Generate ScriptableObjects from downloaded CSV data when needed.
For API documentation and examples, please refer to the Documentation.
Dependencies
This package has no external dependencies.
| Package | Version |
|---|---|
| None | - |
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this package better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Contact
Definitive Infinity Media - contact@definitiveinfinitymedia.com
Project Link: https://github.com/Definitive-Infinity-Media/com.definitiveinfinitymedia.googlesheets