Api Facepunch ActionGraphs Link
class

Link

public sealed class Link

A link connects one Input to a Output. They can either transmit values or signals. A signal will trigger the receiving node to act when the sending node fires its output.

Properties

Name Type Description
Target Input The receiving node's input.
Source Output Where this link retrieves its value from.
ActionGraph ActionGraph The action graph containing this link.
IsSignal Boolean If true, this link will transmit a signal from an action node to another.
Type Type The value type being transmitted by the link.
TargetType Type The value type the target requires from this link.
IsArrayElement Boolean If true, this link is supplying one element of an input that accepts an array.
ArrayIndex Int32 If IsArrayElement is true, this is the index of the element in the receiving array.
UserData JsonObject Arbitrary named values stored in this link, which will be included during serialization. Values must be serializable to JSON.
IsNestedInput Boolean
IsValid virtual Boolean Becomes false when this link is removed.
StackTraceIdentifier virtual String

Methods

Void Remove()

Remove this link from the action graph, disconnecting it from the source and target.

Boolean TryGetConstant(Object value)

If this link is from a Constant source, return true and output the constant value.

Boolean TryGetVariable(Variable variable)

If this link is from a Variable source, return true and output the referenced variable.

Assembly: Facepunch.ActionGraphs Namespace: Facepunch.ActionGraphs Full Name: Facepunch.ActionGraphs.Link