X軸の場合
using UnityEngine; using System.Collections; public class getAngle : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { float myangle = this.transform.localEulerAngles.x; Debug.Log (myangle); } }