How to rotate an objects z axis unity code example Example: get objects z rotation in degrees unity gameObject.transform.rotation.eulerAngles.z