Class NodeMetadataAttribute
Decorate your nodes with this attribute to specify the metadata of your node.
Inherited Members
Namespace: UnityEngine .Importer
Assembly: Unity.Importer.dll
Syntax
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class NodeMetadataAttribute : Attribute
Remarks
node
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.