unity rotation 1 to 0 code example Example: get objects z rotation in degrees unity Click to copygameObject.transform.rotation.eulerAngles.z