Class ScriptNodeViewFactory
Factory for script node views.
Inheritance
System.Object
ScriptNodeViewFactory
Namespace: InsaneScatterbrain.ScriptGraph.Editor
Syntax
public class ScriptNodeViewFactory : object
Constructors
ScriptNodeViewFactory(ScriptNodeViewTypesRegistry)
Create the factory.
Declaration
public ScriptNodeViewFactory(ScriptNodeViewTypesRegistry nodeViewTypesRegistry)
Parameters
Type | Name | Description |
---|---|---|
ScriptNodeViewTypesRegistry | nodeViewTypesRegistry | The node types registry. |
Methods
CreateNodeViewForNode(IScriptNode, ScriptGraphView)
Creates a new node view for the given node.
Declaration
public ScriptNodeView CreateNodeViewForNode(IScriptNode node, ScriptGraphView graphView)
Parameters
Type | Name | Description |
---|---|---|
IScriptNode | node | The node. |
ScriptGraphView | graphView | The graph view. |
Returns
Type | Description |
---|---|
ScriptNodeView | The new node view. |
CreateNodeViewForReferenceNode(ReferenceNode, ScriptGraphView)
Declaration
public ScriptNodeView CreateNodeViewForReferenceNode(ReferenceNode referenceNode, ScriptGraphView scriptGraphView)
Parameters
Type | Name | Description |
---|---|---|
ReferenceNode | referenceNode | |
ScriptGraphView | scriptGraphView |
Returns
Type | Description |
---|---|
ScriptNodeView |