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

スクリプト言語

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

Random.rotation

public static var rotation: Quaternion;

Description

ランダムなQuaternion型の値を返します (Read Only)

// Sets a random orientation for the object.
transform.rotation = Random.rotation;