Class GoogleSheetsExtension
StringTableCollection that provides an editor interface to GoogleSheets.
Inherited Members
Namespace: UnityEditor.Localization.Plugins.Google
Syntax
[Serializable]
public class GoogleSheetsExtension : CollectionExtension
Properties
Columns
The column mappings. Each SheetColumn represents a column in a Google sheet. The column mappings are responsible for converting to and from cell data.
Declaration
public List<SheetColumn> Columns { get; }
Property Value
Type | Description |
---|---|
List<SheetColumn> |
RemoveMissingPulledKeys
If this value is set then after PullIntoStringTableCollection(Int32, StringTableCollection, IList<SheetColumn>, Boolean, ITaskReporter, Boolean) any keys that were not in the sheet will be removed. This is useful if you want to use a single sheet and will be adding and removing keys however if using multiple sheets then this value should be false to prevent accidental loss of data.
Declaration
public bool RemoveMissingPulledKeys { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
SheetId
The id of a sheet inside of a Google Spreadsheet. Each tab is a separate sheet. The sheet id can be found in the url after the gid section: https://docs.google.com/spreadsheets/d/>SpreadsheetId/edit#gid=SheetId
Declaration
public int SheetId { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
SheetsServiceProvider
The SheetsServiceProvider provides the authorization and connection to the Google Sheets service.
Declaration
public SheetsServiceProvider SheetsServiceProvider { get; set; }
Property Value
Type | Description |
---|---|
SheetsServiceProvider |
SpreadsheetId
The Id of the Google Sheet. This can be found by examining the url: https://docs.google.com/spreadsheets/d/>SpreadsheetId/edit#gid=SheetId Further information can be found here.
Declaration
public string SpreadsheetId { get; set; }
Property Value
Type | Description |
---|---|
String |