unity how to get object z rotation code example Example: get objects z rotation in degrees unity gameObject.transform.rotation.eulerAngles.z