Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


operator +(Vector4, Vector4)

Adds two vectors.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Operator
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static Vector4 operator +(Vector4 a, Vector4 b)

Parameters

The first vector to add.

The second vector to add.

Returns

Type

Description

Vector4

Remarks

Adds corresponding components together.

Examples

using UnityEngine;using System.Collections;public class ExampleClass : MonoBehaviour{ void Start() { print(new Vector4(1, 2, 3, 4) + new Vector4(5, 6, 7, 8)); }}