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

スクリプト言語

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

Vector2.Min

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

パラメーター

説明

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

関連項目: Max 関数

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public Vector2 a = new Vector2(1, 3); public Vector2 b = new Vector2(4, 2); void Example() { print(Vector2.Min(a, b)); } }