Class ConnectionData
Connection data.
Namespace: UnityEngine.AssetGraph.DataModel.Version2
Syntax
[Serializable]
public class ConnectionData
Constructors
ConnectionData(ConnectionData)
Declaration
public ConnectionData(ConnectionData v1)
Parameters
| Type | Name | Description |
|---|---|---|
| ConnectionData | v1 |
ConnectionData(String, ConnectionPointData, ConnectionPointData)
Declaration
public ConnectionData(string label, ConnectionPointData output, ConnectionPointData input)
Parameters
| Type | Name | Description |
|---|---|---|
| String | label | |
| ConnectionPointData | output | |
| ConnectionPointData | input |
Properties
FromNodeConnectionPointId
Gets from node connection point identifier.
Declaration
public string FromNodeConnectionPointId { get; }
Property Value
| Type | Description |
|---|---|
| String | From node connection point identifier. |
FromNodeId
Gets from node identifier.
Declaration
public string FromNodeId { get; }
Property Value
| Type | Description |
|---|---|
| String | From node identifier. |
Id
Gets the identifier.
Declaration
public string Id { get; }
Property Value
| Type | Description |
|---|---|
| String | The identifier. |
Label
Gets or sets the label.
Declaration
public string Label { get; set; }
Property Value
| Type | Description |
|---|---|
| String | The label. |
ToNodeConnectionPointId
Gets to node connection point identifier.
Declaration
public string ToNodeConnectionPointId { get; }
Property Value
| Type | Description |
|---|---|
| String | To node connection point identifier. |
ToNodeId
Gets to node identifier.
Declaration
public string ToNodeId { get; }
Property Value
| Type | Description |
|---|---|
| String | To node identifier. |
Methods
CanConnect(NodeData, NodeData)
Determines if can connect the specified from to.
Declaration
public static bool CanConnect(NodeData from, NodeData to)
Parameters
| Type | Name | Description |
|---|---|---|
| NodeData | from | From. |
| NodeData | to | To. |
Returns
| Type | Description |
|---|---|
| Boolean |
|
Duplicate(Boolean)
Declaration
public ConnectionData Duplicate(bool keepGuid = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Boolean | keepGuid |
Returns
| Type | Description |
|---|---|
| ConnectionData |
Validate(List<NodeData>, List<ConnectionData>)
Declaration
public bool Validate(List<NodeData> allNodes, List<ConnectionData> allConnections)
Parameters
| Type | Name | Description |
|---|---|---|
| List<NodeData> | allNodes | |
| List<ConnectionData> | allConnections |
Returns
| Type | Description |
|---|---|
| Boolean |