Class LocalizedReference
A Localized Reference allows for referencing an entry inside of a specific LocalizedTable.
Namespace: UnityEngine.Localization
Syntax
[Serializable]
public abstract class LocalizedReference
Properties
IsEmpty
Does both TableReference and TableEntryReference contain valid references or is one of them Empty?
Declaration
public bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
Boolean |
TableEntryReference
A reference to the entry inside of TableReference. The entry reference can either be the entry id or the entry name.
Declaration
public TableEntryReference TableEntryReference { get; set; }
Property Value
Type | Description |
---|---|
TableEntryReference |
TableReference
A reference to the LocalizedTable. A table reference can be either the name of the table or the table collection name Guid.
Declaration
public TableReference TableReference { get; set; }
Property Value
Type | Description |
---|---|
TableReference |
Methods
ForceUpdate()
Called when a value has been changed and an update may be required.
Declaration
protected abstract void ForceUpdate()
SetReference(TableReference, TableEntryReference)
Sets both the TableReference and TableEntryReference
Declaration
public void SetReference(TableReference table, TableEntryReference entry)
Parameters
Type | Name | Description |
---|---|---|
TableReference | table | |
TableEntryReference | entry |
ToString()
Returns a string representation including the TableReference and TableEntryReference
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |