言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

Vector3.Vector3

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public function Vector3(x: float, y: float, z: float)
public Vector3(float x, float y, float z);
public def Vector3(x as float, y as float, z as float)

Description

与えられた x、y、z 成分で新規のベクトルを作成します

public function Vector3(x: float, y: float)
public Vector3(float x, float y);
public def Vector3(x as float, y as float)

Description

x、y 成分でベクトルを作成した場合、 z には0が設定されます