unity transform.Rotate.x 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 );