TokenNode
The TokenNode class includes methods for creating and managing a Node that resembles a capsule. The TokenNode class includes a title, an icon, one input Port, and one output Port.
Read time 9 minutesLast updated 7 days ago
Definition
- Type: Class
- Namespace: UnityEditor.Experimental.GraphView
- Assembly: UnityEditor
- Inherits from: Node
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, ISelectable, ICollectibleElement
public class TokenNode : Node, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, ISelectable, ICollectibleElement
Constructors
Constructor | Description |
|---|---|
| TokenNode(UnityEditor.Experimental.GraphView.Port,UnityEditor.Experimental.GraphView.Port) | Constructs a TokenNode with both input and output Ports. |
Properties
Property | Description |
|---|---|
| highlighted | Returns whether the TokenNode is highlighted. |
| icon | The icon of the TokenNode. |
| input | The input Port of the TokenNode. |
| output | The output Port of the TokenNode. |