class Link
This class represents a link between two nodes.
InstantTerra instantTerra = new InstantTerra();
Node myNode = instantTerra.GetProject().GetGraph().GetAllNodes()[0]; // Get the first node
Link link = instantTerra.GetProject().GetGraph().GetNodeLinks(my_node)[0]; // Get the first link of the node "myNode"
enum LinkType
This enum represents the type of a node connector.
GetStartNode
()Node at the start of the link.
Node startNode = myLink.GetStartNode();
GetStartConnectorMode
()Connector mode at the start of the link.
Node.ConnectorMode startConnectorMode = myLink.GetStartConnectorMode();
GetStartConnectorType
()Connector type at the start of the link.
Node.ConnectorType startConnectorType = myLink.GetStartConnectorType();
GetEndNode
()Node at the end of the link.
Node endNode = myLink.GetEndNode();
GetEndConnectorMode
()Connector mode at the end of the link.
Node.ConnectorMode endConnectorMode = myLink.GetEndConnectorMode();
GetEndConnectorType
()Connector type at the end of the link.
Node.ConnectorType endConnectorType = myLink.GetEndConnectorType();
GetLinkType
()Type of link.
LinkType linkType = myLink.GetLinkType();
Copyright © 2022 · All Rights Reserved · Wysilab