기술 자료

Unity Engine

Unity Engine

operator +(Vector4, Vector4)

Adds two vectors.
읽는 시간 1분최근 업데이트: 한 달 전

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)); }}