Marks a key or entry so that editor exporters skip it.
Use this to keep editor-only or placeholder strings out of the files exported for translators, for example a
collection JSON or CSV export. The entry stays in the collection; only the exported file omits it. It implements
IMetadata, so it is stored in a MetadataCollection, and it carries no data of its own:
its presence is the flag. The MetadataAttribute on this type allows it on shared keys and per-locale
entries, and limits each target to a single instance.
Additional resources: ExcludeEntryFromPlayerExport, IMetadata, MetadataCollection
<para>Flag an entry so the editor export skips it.</para>
using Unity.Localization;
namespace Unity.Localization.Samples { public class ExcludeEntryFromExportExample { public void Run(MetadataCollection metadata) { // Keep the entry out of a built player's generated files, but still ship it in the table asset. metadata.AddMetadata(new ExcludeEntryFromPlayerExport());
// Keep the entry out of files exported for translators. metadata.AddMetadata(new ExcludeEntryFromEditorExport()); } } }