how to gte the x value of an objects rotation code example Example: get objects z rotation in degrees unity gameObject.transform.rotation.eulerAngles.z