docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NodeMetadataAttribute

    Decorate your nodes with this attribute to specify the metadata of your node.

    Inheritance
    object
    Attribute
    NodeMetadataAttribute
    Inherited Members
    Attribute.Equals(object)
    Attribute.GetCustomAttribute(Assembly, Type)
    Attribute.GetCustomAttribute(Assembly, Type, bool)
    Attribute.GetCustomAttribute(MemberInfo, Type)
    Attribute.GetCustomAttribute(MemberInfo, Type, bool)
    Attribute.GetCustomAttribute(Module, Type)
    Attribute.GetCustomAttribute(Module, Type, bool)
    Attribute.GetCustomAttribute(ParameterInfo, Type)
    Attribute.GetCustomAttribute(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(Assembly)
    Attribute.GetCustomAttributes(Assembly, bool)
    Attribute.GetCustomAttributes(Assembly, Type)
    Attribute.GetCustomAttributes(Assembly, Type, bool)
    Attribute.GetCustomAttributes(MemberInfo)
    Attribute.GetCustomAttributes(MemberInfo, bool)
    Attribute.GetCustomAttributes(MemberInfo, Type)
    Attribute.GetCustomAttributes(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(Module)
    Attribute.GetCustomAttributes(Module, bool)
    Attribute.GetCustomAttributes(Module, Type)
    Attribute.GetCustomAttributes(Module, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo)
    Attribute.GetCustomAttributes(ParameterInfo, bool)
    Attribute.GetCustomAttributes(ParameterInfo, Type)
    Attribute.GetCustomAttributes(ParameterInfo, Type, bool)
    Attribute.GetHashCode()
    Attribute.IsDefaultAttribute()
    Attribute.IsDefined(Assembly, Type)
    Attribute.IsDefined(Assembly, Type, bool)
    Attribute.IsDefined(MemberInfo, Type)
    Attribute.IsDefined(MemberInfo, Type, bool)
    Attribute.IsDefined(Module, Type)
    Attribute.IsDefined(Module, Type, bool)
    Attribute.IsDefined(ParameterInfo, Type)
    Attribute.IsDefined(ParameterInfo, Type, bool)
    Attribute.Match(object)
    Attribute.TypeId
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Importer
    Assembly: Unity.Importer.dll
    Syntax
    [AttributeUsage(AttributeTargets.Class, Inherited = false)]
    public class NodeMetadataAttribute : Attribute
    Remarks

    nodeId and version must always be specified and their combination need to be unique across all nodes.

    Constructors

    NodeMetadataAttribute(string, int)

    Decorate your nodes with this attribute to specify the metadata of your node.

    Declaration
    public NodeMetadataAttribute(string _nodeId, int _version)
    Parameters
    Type Name Description
    string _nodeId

    Node ID used to regroup node of different types.

    int _version

    Version used to order nodes with the same ID.

    Fields

    description

    Description of the node, displayed in the graph editor.

    Declaration
    public string description
    Field Value
    Type Description
    string

    displayName

    Display name of the node, displayed in the graph editor.

    Declaration
    public string displayName
    Field Value
    Type Description
    string

    nodeId

    Node ID used to regroup node of different types.

    Declaration
    public string nodeId
    Field Value
    Type Description
    string
    Remarks

    When a new version of a node is required (breaking changes, retro-compatibility), users will create a new type. For more clarity, the editor's node browser will display them grouped by their ID and ordered by their version.

    version

    Version used to order nodes with the same ID.

    Declaration
    public int version
    Field Value
    Type Description
    int
    Remarks

    When a new version of a node is required (breaking changes, retro-compatibility), users will create a new type. For more clarity, the editor's node browser will display them grouped by their ID and ordered by their version.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)