Version: 2017.4
public static Vector4 operator - (Vector4 a, Vector4 b);

説明

別のベクトルと減算を行います

a から b の各成分を減算します。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { // prints (-5.0,-3.0,-1.0,1.0) void Example() { print(new Vector4(1, 2, 3, 4) - new Vector4(6, 5, 4, 3)); } }

public static Vector4 operator - (Vector4 a);

説明

ベクトルを否定します(ベクトルに-1 を乗算します)

各成分に-1 を乗算した結果になります。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { // prints (-1.0,-2.0,-3.0,-4.0) void Example() { print(-new Vector4(1, 2, 3, 4)); } }