Evaluates a mathematical or logical formula with multiple arguments.
public sealed class Formula : MultiInputUnit<object>, IMultiInputUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable
Properties
Whether input arguments should only be fetched once and then reused.
Declaration
[Serialize]
[Inspectable(order = 2147483647)]
[InspectorExpandTooltip]
public bool cacheArguments { get; set; }
Property Value
A mathematical or logical expression tree.
Declaration
[DoNotSerialize]
[Inspectable]
[UnitHeaderInspectable]
public string formula { get; set; }
Property Value
Declaration
protected override int minInputCount { get; }
Property Value
Overrides
Unity.VisualScripting.MultiInputUnit<System.Object>.minInputCount
The result of the calculation or evaluation.
Declaration
[DoNotSerialize]
public ValueOutput result { get; }
Property Value
Methods
Declaration
protected override void Definition()
Overrides
Unity.VisualScripting.MultiInputUnit<System.Object>.Definition()
Declaration
public static int GetArgumentIndex(char name)
Parameters
Type |
Name |
Description |
Char |
name |
|
Returns
Declaration
public static string GetArgumentName(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
Declaration
public object GetParameterValue(Flow flow, string name)
Parameters
Returns
Extension Methods