Skip to main content

EnvironmentNode.Variable

A class in Root.Township, the global namespace.

An optional float setting on an EnvironmentNode (used for reverb). It either overrides the value or falls back to a default node's value.

Constructors​

MemberWhat it is
Variable()Creates an EnvironmentNode.Variable with default values.

Fields​

2 private and internal fields
MemberWhat it is
private bool isOverridingWhether this node sets its own value instead of using the default.
private float valueThe override value, used only when isOverriding is on.

Methods​

MemberWhat it is
float Get(EnvironmentNode.Variable defaultValue)Returns value when overriding, otherwise the given default variable's value, or 0 if there is none.

Used in​

Members of other types that take, return or hold a Variable: