Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

Vector4.operator +

public static Vector4 operator +(Vector4 a, Vector4 b);

Description

Adds two vectors.

Adds corresponding components together.

using UnityEngine;
using System.Collections;

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

Did you find this page useful? Please give it a rating: