Class MetadataAttribute
Provides a hint to the editor on where this metadata can be used. This is only used in the editor and ignored when adding Metadata through script.
Namespace: UnityEngine.Localization.Metadata
Syntax
[AttributeUsage(AttributeTargets.Class)]
public class MetadataAttribute : Attribute, _Attribute
Properties
AllowedTypes
The types that the Metadata is meant for. This is used when generating the add Metadata menu.
Declaration
public MetadataType AllowedTypes { get; set; }
Property Value
Type | Description |
---|---|
MetadataType |
AllowMultiple
Can multiple instances be added?
Declaration
public bool AllowMultiple { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
MenuItem
Name to use in the add Metadata menu. If empty then the class name will be used.
Declaration
public string MenuItem { get; set; }
Property Value
Type | Description |
---|---|
String |