Version: 5.3 (switch to 5.4b)
言語English
  • C#
  • JS

スクリプト言語

好きな言語を選択してください。選択した言語でスクリプトコードが表示されます。

Vector4.Max

マニュアルに切り替える
public static Vector4 Max(Vector4 lhs, Vector4 rhs);

パラメーター

説明

2 つのベクトルで各成分の一番大きな値を使用してベクトルを作成します

関連項目: Min 関数

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public Vector4 a = new Vector4(1, 2, 3, 5); public Vector4 b = new Vector4(4, 3, 2, 0); void Example() { print(Vector4.Max(a, b)); } }