Skip to content

[Api] Links

CoffeeVampir3 edited this page Mar 29, 2021 · 11 revisions
public class Link

This is the Api, for general information see Link Usage

Links

Assumes the type T is correct and fetches the value of the distant end of this link as T. This is provided only for graphs who intend to use only one type. This can throw at runtime, so do not use this if your graph deals with multiple types.

public RuntimeNode Node => linkedTo;

Returns the distant node this link is linked to.

public int PortIndex => localPortIndex;

Used for dynamic ports, indicates which dynamic port this link connects to, the index corresponds to the port #ing on the node:

public void Reset(int graphId)

Resets the value of this link for the given Virtual Graph id.