Class Average<T>
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitOrder(304)]
public abstract class Average<T> : MultiInputUnit<T>, IMultiInputUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable
Type Parameters
Name | Description |
---|---|
T |
Properties
average
The average.
Declaration
[DoNotSerialize]
public ValueOutput average { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Unity.VisualScripting.MultiInputUnit<T>.Definition()
Operation(T, T)
Declaration
public abstract T Operation(T a, T b)
Parameters
Type | Name | Description |
---|---|---|
T | a | |
T | b |
Returns
Type | Description |
---|---|
T |
Operation(IEnumerable<T>)
Declaration
public abstract T Operation(IEnumerable<T> values)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | values |
Returns
Type | Description |
---|---|
T |
Operation(Flow)
Declaration
public T Operation(Flow flow)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow |
Returns
Type | Description |
---|---|
T |