Class NodeProvider
Allows you to register one or more INodes usable by node scripts.
public abstract class NodeProvider : PluginFeature, IDisposable
- Inheritance
-
objectCorePropertyChangedNodeProvider
- Implements
- Inherited Members
Constructors
NodeProvider()
Creates a new instance of the NodeProvider class.
public NodeProvider()
Properties
NodeDescriptors
A read-only collection of all nodes added with RegisterNodeType<T>()
public ReadOnlyCollection<NodeData> NodeDescriptors { get; set; }
Property Value
Methods
RegisterNodeType(Type)
Adds a node descriptor for a given node, so that it appears in the UI.
Note: You do not need to manually remove these on disable
protected void RegisterNodeType(Type nodeType)
Parameters
nodeTypeTypeThe type of the node you wish to register
RegisterNodeType<T>()
Adds a node descriptor for a given node, so that it appears in the UI.
Note: You do not need to manually remove these on disable
protected void RegisterNodeType<T>() where T : INode
Type Parameters
TThe type of the node you wish to register
RegisterTypeColor<T>(SKColor)
Adds a color for lines of the provided type.
protected TypeColorRegistration RegisterTypeColor<T>(SKColor color)
Parameters
colorSKColorThe color to add.
Returns
Type Parameters
TThe type to use the color for.