Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


EntryData

One row of a snapshot: a key's shared data plus this locale's value, either a string or a serialized entry.
Read time 1 minuteLast updated 10 days ago

Definition

public class EntryData

Remarks

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.

Fields

Value

Description

EntryJsonA non-string entry's own fields as JSON.
IdThe stable key id, preserved so references by id keep resolving.
IsSmartWhether the key's string values are Smart Strings.
KeyThe key text.
SelectorThe variant selector for this key, or a default when the key is plain.
TypeNameThe assembly-qualified type name of a non-string entry, or empty when the row is a string entry.
ValueThe default string value, used when the entry is a string entry and no variant matches.
VariantKeysThe active variant keys for this key.
VariantsThe per-variant string values for a string entry.