# ExcludeEntryFromPlayerExport

> Marks a key or entry so that it is left out of the files generated for a built player.

## Definition

* **Type:** Class
* **Namespace:** [Unity.Localization](/engine/6000.7/script-reference/unity/localization.md)
* **Assembly:** UnityEngine.LocalizationRuntimeModule
* **Implements:** [IMetadata](/engine/6000.7/script-reference/unity/localization/imetadata.md)

```csharp
public class ExcludeEntryFromPlayerExport : IMetadata
```

## Remarks

Use this to keep an entry out of the generated player file tables while still shipping it: the entry stays in the table asset and is served from there at runtime, the same way an object-reference asset entry is. It implements [IMetadata](/engine/6000.7/script-reference/unity/localization/imetadata.md), so it is stored in a [MetadataCollection](/engine/6000.7/script-reference/unity/localization/metadatacollection.md), and it carries no data of its own: its presence is the flag. The [MetadataAttribute](/engine/6000.7/script-reference/unity/localization/metadataattribute.md) on this type allows it on shared keys and per-locale entries, and limits each target to a single instance.

Additional Resources: [ExcludeEntryFromEditorExport](/engine/6000.7/script-reference/unity/localization/excludeentryfromeditorexport.md), [IMetadata](/engine/6000.7/script-reference/unity/localization/imetadata.md), [MetadataCollection](/engine/6000.7/script-reference/unity/localization/metadatacollection.md)

Flag an entry so the player file generation leaves it in the table asset.

## Examples

```csharp
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());
        }
    }
}
```
