Struct Edge
Inherited Members
Namespace: UnityEngine.Importer
Assembly: Unity.Importer.dll
Syntax
[Serializable]
public struct Edge : IEquatable<Edge>, IOriginEdge, IDestinationEdge
Remarks
A valid edge must abide to the following rules :
- origin is an output field of a node in the graph
- destination is an input field of another node in the graph
- origin and destination field are of the same type
- edge is unique
- only one incoming edge per input
Constructors
Edge(INode<InputPorts, OutputPorts>, string, INode<InputPorts, OutputPorts>, string)
Declaration
public Edge(INode<InputPorts, OutputPorts> origin, string originFieldName, INode<InputPorts, OutputPorts> destination, string destinationFieldName)
Parameters
Type | Name | Description |
---|---|---|
INode<InputPorts, OutputPorts> | origin | The Edge origin INode<TInput, TOutput>. |
string | originFieldName | The Edge origin output field on the origin INode<TInput, TOutput>. |
INode<InputPorts, OutputPorts> | destination | The Edge destination INode<TInput, TOutput>. |
string | destinationFieldName | The Edge destination input field on the destination INode<TInput, TOutput>. |
Properties
Destination
A NodePort representing the destination of the Edge.
Declaration
public NodePort Destination { get; }
Property Value
Type | Description |
---|---|
NodePort |
Origin
A NodePort representing the origin of the Edge.
Declaration
public NodePort Origin { get; }
Property Value
Type | Description |
---|---|
NodePort |
Methods
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj |
Returns
Type | Description |
---|---|
bool |
Overrides
Equals(Edge)
Declaration
public bool Equals(Edge other)
Parameters
Type | Name | Description |
---|---|---|
Edge | other |
Returns
Type | Description |
---|---|
bool |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Overrides
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |