ResourceTableCollection
Represents the source asset for a set of localized tables: shared key data plus one table per locale.
Read time 4 minutesLast updated 11 days ago
Definition
- Type: Class
- Namespace: Unity.Localization.Editor
- Assembly: UnityEditor
- Inherits from: ScriptableObject
[HelpURL("localization/create-and-edit-table-collections")]public sealed class ResourceTableCollection : ScriptableObject
Remarks
A collection groups a single SharedTableData with one ResourceTable per locale. Authoring edits the per-locale tables through the collection; at runtime the ResourceDatabase resolves through the individual tables it has registered, not the collection, which is editor-only.
Properties
Property | Description |
|---|---|
| Extensions | Gets the extensions attached to this collection. |
| ProviderId | Gets or sets the identifier of the asset provider this collection registers its tables and assets with. |
| SharedData | Gets or sets the shared key data for the collection. |
| TableCollectionName | Gets the collection name. |
| Tables | Gets the per-locale tables in this collection. |
Methods
Method | Description |
|---|---|
| AddExtension | Attaches an extension to this collection. |
| AddTable | Adds a per-locale table to the collection. |
| GetExtension | Returns the first attached extension of a type. |
| GetTable | Returns the table for a locale. |
| RemoveExtension | Removes an extension from this collection. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |