Api Facepunch ActionGraphs Variable
class

Variable

public class Variable

Variables have a name and type, and are local to each invocation of an ActionGraph. They are assigned with a SetVar node, and read with GetVar.

Properties

Name Type Description
Name String The name of this variable, unique in its action graph.
Type Type Value type stored in this variable.
DefaultValue Object Initial value of the variable before being assigned.
UserData JsonObject Arbitrary named values stored in this variable, which will be included during serialization. Values must be serializable to JSON.
References IEnumerable<Property> All node properties that currently reference this variable.
ActionGraph virtual ActionGraph The action graph this variable belongs to.
StackTraceIdentifier virtual String
IsValid virtual Boolean Becomes false when this variable is removed.

Methods

Void Remove()

Remove this variable from its action graph. This will clear any references to it.

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