how to get rotation.x unity code example
Example: transform.rotation.x unity
transform.eulerAngles = new Vector3( xRotation, transform.eulerAngles.y, transform.eulerAngles.z );
transform.eulerAngles = new Vector3( xRotation, transform.eulerAngles.y, transform.eulerAngles.z );