Get object rotation angle.

How can I get object's rotation angle. If I use transform.rotation it gives not the angle.

I know you have to use quaternion, but I am not sure how to do this. Please tell me.

Thanks.

Does Transform.eulerAngles give what you need?

float Angle=Quaternion.Angle(Quaternion.Euler(new Vector3(0,0,0)),transform.rotation);
this give the angle b/w two rotations

Ya know, the problem with giving people links to an answer rather that just repeat it or copy/paste the answer, is that when people like me are looking for an answer years from when you posted your reply…the link is long dead. useful pages removed while total waste of time pages - like this one- remain