Class ScriptNodeView
The default script node view.
Inheritance
System.Object
ScriptNodeView
Syntax
public class ScriptNodeView : UnityEditor.Experimental.GraphView.Node
Constructors
ScriptNodeView(IScriptNode, ScriptGraphView)
Creates a new script node view for the given node and script graph view.
Declaration
public ScriptNodeView(IScriptNode node, ScriptGraphView graphView)
Parameters
Properties
Graph
Gets the graph this node is a part of.
Declaration
protected ScriptGraphGraph Graph { get; }
Property Value
GraphView
Declaration
protected ScriptGraphView GraphView { get; }
Property Value
Gets all the input port views.
Declaration
public IReadOnlyDictionary<string, Port> Inputs { get; }
Property Value
Type |
Description |
IReadOnlyDictionary<System.String, Port> |
|
IsNoteReadOnly
Declaration
public bool IsNoteReadOnly { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Node
Gets the node this node view represents.
Declaration
public IScriptNode Node { get; }
Property Value
Outputs
Gets all the output port views.
Declaration
public IReadOnlyDictionary<string, Port> Outputs { get; }
Property Value
Type |
Description |
IReadOnlyDictionary<System.String, Port> |
|
Methods
AddInPort(InPort)
Declaration
protected void AddInPort(InPort input)
Parameters
Type |
Name |
Description |
InPort |
input |
|
AddOutPort(OutPort)
Declaration
protected void AddOutPort(OutPort output)
Parameters
Type |
Name |
Description |
OutPort |
output |
|
HideNote()
Declaration
Initialize()
Initializes the node view.
Declaration
public virtual void Initialize()
InitializeTitle()
Declaration
protected virtual void InitializeTitle()
MoveInPort(InPort, Int32)
Declaration
protected void MoveInPort(InPort input, int newIndex)
Parameters
Type |
Name |
Description |
InPort |
input |
|
System.Int32 |
newIndex |
|
MoveOutPort(OutPort, Int32)
Declaration
protected void MoveOutPort(OutPort output, int newIndex)
Parameters
Type |
Name |
Description |
OutPort |
output |
|
System.Int32 |
newIndex |
|
Refresh()
Declaration
RemoveInPort(InPort)
Declaration
protected void RemoveInPort(InPort input)
Parameters
Type |
Name |
Description |
InPort |
input |
|
RemoveOutPort(OutPort)
Declaration
protected void RemoveOutPort(OutPort output)
Parameters
Type |
Name |
Description |
OutPort |
output |
|
RenameInPort(InPort, String, String)
Declaration
protected void RenameInPort(InPort input, string oldName, string newName)
Parameters
Type |
Name |
Description |
InPort |
input |
|
System.String |
oldName |
|
System.String |
newName |
|
RenameOutPort(OutPort, String, String)
Declaration
protected void RenameOutPort(OutPort output, string oldName, string newName)
Parameters
Type |
Name |
Description |
OutPort |
output |
|
System.String |
oldName |
|
System.String |
newName |
|
ShowNote()
Declaration
public async void ShowNote()
Extension Methods