IMetadata
Marks a type as metadata that can be attached to a locale, a table, a shared key, or a per-locale entry.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Interface
- Namespace: Unity.Localization
- Assembly: UnityEngine.LocalizationRuntimeModule
public interface IMetadata
Remarks
Implementations are serialized by reference through MetadataCollection, so each metadata item can carry its own serialized fields, for example a Comment or an ExcludeEntryFromEditorExport flag. Apply MetadataAttribute to an implementation to control where it can be attached and how it appears in the editor's "Add Metadata" menu.
Implement the interface to define a custom metadata item that carries its own fields.
Examples
using System;using Unity.Localization;namespace Unity.Localization.Samples{ [Serializable] public class IMetadataExample : IMetadata { public string author; }}