Api Property
class

Property

public class Property : Parameter<T>

A named constant value stored inside a node.

Constructors

Property()

Properties

Name Type Description
IsVariable Boolean If true, this property references a Variable.
Value Object Constant value assigned to this parameter.

Methods

Boolean TryGetValue(Object value)

Attempts to get either the current assigned value, or default value for optional properties. Returns false if this property is required and has no assigned value.

value — Current assigned or default value.
returns — True if this node has an assigned or default value.
Object GetValueOrDefault()

Attempts to get either the current assigned value, or default value for optional properties. Throws an exception if this property is required and has no assigned value.

T GetValueOrDefault()

Attempts to get either the current assigned value, or default value for optional properties. Throws an exception if this property is required and has no assigned value, or the assigned value is the wrong type.

Assembly: Facepunch.ActionGraphs Declaring Type: Node Full Name: Facepunch.ActionGraphs.Node.Property