Transform.rotation in degrees instead of 0 to 1

Hi,
when checking transform.rotation.y of an object I get a value between 0 and 1 but I need the rotation in degrees as shown in the Transform section of the Inspector. How to check rotation in degrees to use this value?
Thanks in advance

Use transform.eulerAngles instead.

`Rotation` is supposed to be a quaternion so when you call your code, you're just getting the `y` component of that and that's not very useful unless you know your quaternion systems...

If eant the Angles you should use

transform.rotation.eulerAngles

This one is the vector you see in the inspector

Hope it helps