Class SharedTableCollectionMetadata
Shared Metadata is data that is associated to all tables that use the same SharedTableData, also known as an AssetTableCollection. Multiple table entries can be included in the SharedTableCollectionMetadata and The tables that use each table entry are recorded.
Namespace: UnityEngine.Localization.Metadata
Syntax
[Serializable]
public abstract class SharedTableCollectionMetadata : IMetadata, ISerializationCallbackReceiver
Properties
IsEmpty
Are any table entries currently associated to this Metadata?
Declaration
public bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
AddEntry(UInt32, String)
Add the table entry for a specific table to the shared Metadata.
Declaration
public void AddEntry(uint keyId, string code)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | keyId | The Id of the table entry. |
String | code | The table culture code. |
Contains(UInt32)
Is the table entry associated to this Metadata?
Declaration
public bool Contains(uint keyId)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | keyId |
Returns
Type | Description |
---|---|
Boolean |
Contains(UInt32, String)
Is the table entry and culture code associated to this Metadata?
Declaration
public bool Contains(uint keyId, string code)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | keyId | |
String | code |
Returns
Type | Description |
---|---|
Boolean |
OnAfterDeserialize()
Converts the serializable list into a dictionary.
Declaration
public virtual void OnAfterDeserialize()
OnBeforeSerialize()
Converts the internal dictionary into a serializable list.
Declaration
public virtual void OnBeforeSerialize()
RemoveEntry(UInt32, String)
Remove the table entry for a specific table from the shared Metadata.
Declaration
public void RemoveEntry(uint keyId, string code)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | keyId | |
String | code |