Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

EntryData

class in Unity.Localization.Providers.FileTables

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

One row of a snapshot: a key's shared data plus this locale's value, either a string or a serialized entry.

The value is a string entry when EntryData.TypeName is empty, using EntryData.Value and EntryData.Variants; otherwise it is a non-string entry that implements IFileDataEntry, reconstructed from EntryData.TypeName and EntryData.EntryJson. The shared fields (EntryData.Key, EntryData.IsSmart, EntryData.VariantKeys, EntryData.Selector) are the same across every locale and are repeated in each per-locale file so a single file rebuilds the shared data it needs.

Properties

Property Description
EntryJson A non-string entry's own fields as JSON.
Id The stable key id, preserved so references by id keep resolving.
IsSmart Whether the key's string values are Smart Strings.
Key The key text.
Selector The variant selector for this key, or a default when the key is plain.
TypeName The assembly-qualified type name of a non-string entry, or empty when the row is a string entry.
Value The default string value, used when the entry is a string entry and no variant matches.
VariantKeys The active variant keys for this key.
Variants The per-variant string values for a string entry.