Class GoogleSheetsResource
Syncs a module ResourceTableCollection with a Google Sheet.
Namespace: UnityEditor.Localization.Plugins.Google
Assembly: Unity.Localization.Editor.dll
Syntax
public class GoogleSheetsResource
Remarks
The sheet layout is fixed: a Key column, an Id column, an IsSmart column, then one column per locale, matching the module's CSV format. Pushing writes the whole grid; pulling applies values by key and id, creating missing keys and skipping locales the collection has no table for.
Constructors
| Name | Description |
|---|---|
| GoogleSheetsResource(IGoogleSheetsService) | Creates a new instance using an authorized sheets service. |
Properties
| Name | Description |
|---|---|
| SpreadSheetId | The id of the spreadsheet to sync with. |
Methods
| Name | Description |
|---|---|
| PullIntoResourceCollection(int, ResourceTableCollection, bool) | Reads a sheet back into the collection. |
| PushResourceCollection(int, ResourceTableCollection) | Writes the collection into a sheet, replacing its contents. |