Version: 2017.1
public Vector3 localEulerAngles ;

説明

親の Transform オブジェクトから見た相対的なオイラー角としての回転値

x、y、z の値により、Z軸で z 度、X軸で x 度、Y軸で y 度 回転します。またこの順番で回転します。

Only use this variable to read and set the angles to absolute values. Don't increment them, as it will fail when the angle exceeds 360 degrees. Use Transform.Rotate instead.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { print(transform.localEulerAngles.x); print(transform.localEulerAngles.y); print(transform.localEulerAngles.z); } }

Unity は自動的に Transform.localRotation に格納されている回転から角度を変換します。