Class MetadataAttribute | Localization | 0.8.1-preview
docs.unity.cn
    Show / Hide Table of Contents

    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.

    Inheritance
    Object
    Attribute
    MetadataAttribute
    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
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Wednesday, August 19, 2020