Class ScalarSum
Returns the sum of two or more scalars.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Math/Scalar")]
[UnitTitle("Add")]
public sealed class ScalarSum : Sum<float>, IMultiInputUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable, IDefaultValue<float>
Properties
defaultValue
Declaration
[DoNotSerialize]
public float defaultValue { get; }
Property Value
Type | Description |
---|---|
Single |
Implements
Methods
Operation(IEnumerable<Single>)
Declaration
public override float Operation(IEnumerable<float> values)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Single> | values |
Returns
Type | Description |
---|---|
Single |
Overrides
Unity.VisualScripting.Sum<System.Single>.Operation(System.Collections.Generic.IEnumerable<System.Single>)
Operation(Single, Single)
Declaration
public override float Operation(float a, float b)
Parameters
Type | Name | Description |
---|---|---|
Single | a | |
Single | b |
Returns
Type | Description |
---|---|
Single |
Overrides
Unity.VisualScripting.Sum<System.Single>.Operation(System.Single, System.Single)