NodeAttribute
Attribute used to specify metadata for a Node class, such as its icon.
Read time 4 minutesLast updated 6 days ago
Definition
- Type: Class
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
- Inherits from: Attribute
[AttributeUsage(AttributeTargets.Class)]public sealed class NodeAttribute : Attribute
Remarks
Apply this attribute to a class derived from Node to define metadata like NodeAttribute.IconPath.
Constructors
Constructor | Description |
|---|---|
| NodeAttribute(System.String) | Initializes a new instance of the NodeAttribute class. |
| NodeAttribute(System.String,System.String) | Initializes a new instance of the NodeAttribute class. |
| NodeAttribute(System.String,System.String,System.String) | Initializes a new instance of the NodeAttribute class. |
| NodeAttribute(System.String,System.String,System.String,System.String) | Initializes a new instance of the NodeAttribute class. |
Properties
Property | Description |
|---|---|
| CategoryPath | The category path of this node in the graph item library. |
| IconPath | The file path to the node's icon. |
| Stylesheet | Path to a stylesheet (.uss) for customizing the appearance of the VisualElement of this node. |
| Title | The title of this node in the graph item library. |