Version: 2020.1
언어: 한국어
public static Quaternion rotation ;

설명

Returns a random rotation (Read Only).

using UnityEngine;

// Click button and a rotation will be applied

public class ExampleClass : MonoBehaviour { void OnGUI() { if (GUI.Button(new Rect(10, 10, 100, 50), "rotation")) { transform.rotation = Random.rotation; } } }