Class MetadataAttribute | Localization | 0.9.0-preview
docs.unity3d.com
    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 © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023