ドキュメント

Unity Engine

Unity Engine

IMetadata

Marks a type as metadata that can be attached to a locale, a table, a shared key, or a per-locale entry.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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; }}