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