The plugin allows you to use Google Sheets as a configuration repository for your game. And also use Google Sheets as a repository for localization. The plugin saves data from spreadsheets in json and uses data from them when building a project. In the Editor mode, you can synchronize and save all the necessary spreadsheets.
- Setup. Required setup steps
- Add first spreadsheet. Add or update first spreadsheet data
- Update Google spredsheet. Update existed Google spreadsheet via script in editor mode
- Get spreadsheet data. Get actual data from the spreadsheet
- Navigate to the
Packages
directory of your project. - Adjust the project manifest file
manifest.json
in a text editor. - Ensure
https://registry.npmjs.org/
is part ofscopedRegistries
.- Ensure
com.stansassets
is part ofscopes
. - Add
com.stansassets.google-doc-connector-pro
to thedependencies
, stating the latest version.
- Ensure
A minimal example ends up looking like this. Please note that the version X.Y.Z
stated here is to be replaced with the latest released version which is currently .
{
"scopedRegistries": [
{
"name": "npmjs",
"url": "https://registry.npmjs.org/",
"scopes": [
"com.stansassets"
]
}
],
"dependencies": {
"com.stansassets.google-doc-connector-pro": "X.Y.Z",
...
}
}
- Switch back to the Unity software and wait for it to finish importing the added package.
- Install openupm-cli
npm install -g openupm-cli
oryarn global add openupm-cli
- Enter your unity project folder
cd <YOUR_UNITY_PROJECT_FOLDER>
- Install package
openupm add com.stansassets.google-doc-connector-pro
Yoy can also install this package via Git URL. To load a package from a Git URL:
- Open Unity Package Manager window.
- Click the add + button in the status bar.
- The options for adding packages appear.
- Select Add package from git URL from the add menu. A text box and an Add button appear.
- Enter the
https://github.com/StansAssets/com.stansassets.google-doc-connector-pro.git
Git URL in the text box and click Add. - You may also install a specific package version by using the URL with the specified version.
https://github.com/StansAssets/com.stansassets.google-doc-connector-pro.git#X.Y.X
- Please note that the version
X.Y.Z
stated here is to be replaced with the version you would like to get. - You can find all the available releases here.
- The latest available release version is
Unity Package Manager supports referencing packages from private repositories by SSH, see an example:
"com.company.app": "ssh://[email protected]/Company/app.git#X.Y.Z"
.
But easy to stumble if doing it the first time because Unity Package Manager requires the only SSH key without a passphrase. A quick guide to starting with:
- Start Git Bash and generate SSH key without a passphrase if you don't have one already. (Git SSH Guide)
- Add SSH key to an ssh-agent. Reboot PC.
- Create some temporary directory on a PC and go there by executing command
cd C:\Repositories\SSHTestRepository
. Clone repository that going to be referenced as a package withgit clone [email protected]/Company/app.git
, agree with adding to a hosts list. - Done! Feel free to delete previously cloned repository.
For more information about what protocols Unity supports, see Git URLs.
We are committed to developing high quality and engaging entertainment software. Our mission has been to bring a reliable and high-quality Unity Development service to companies and individuals around the globe. At Stan's Assets, we make Plugins, SDKs, Games, VR & AR Applications. Do not hesitate do get in touch, whether you have a question, want to build something, or just to say hi :) Let's Talk!
Website | LinkedIn | Youtube | Github | AssetStore