How to get Euler rotation angles exactly as displayed in the Transform inspector?

How to get Euler rotation angles exactly as displayed in the Transform inspector?

Sounds simple right. I have no idea. :frowning:

Debug.Log("T = " + transform.eulerAngles);

It seems like this would have been answered before but I can’t seem to find that either.

Thanks for the help!

Yeah… Unfortunately, that doesn’t address my question at all.

For Example:

Unity Editor —> Transform —> Rotation —> (0,0,5)

Unity Script —> Debug.Log(m_sourceObject.eulerAngles); —> (85,90,90)

Yes it did. There are two sets of angles: eulerAngles and localEulerAngles.

Whoops… Yeah… your right.
Had the parenting backwards…