How to set transform.localEulerAngles to Input.GetAxis X and Y?

I’m using the below code to control the camera in my FPS controller but it only works on one axis. If I comment out the third line it works on the horizontal axis, otherwise it only works on the vertical. How can I get it to read both?

    verticalLookRotation = Mathf.Clamp (verticalLookRotation, -80, 80);
	horizontalLookRotation = Mathf.Clamp (horizontalLookRotation, -80, 80);
	cameraT.localEulerAngles = Vector3.left * verticalLookRotation;
	cameraT.localEulerAngles = Vector3.up * horizontalLookRotation;

it’s because you are setting the variable cameraT.localEulerAngles to one value and then overriding it immediately after, you have to combine the values. I’m not great at vector math and not sure what you want to accomplish, but you could try adding one to the other

 cameraT.localEulerAngles = Vector3.left * verticalLookRotation;
 cameraT.localEulerAngles += Vector3.up * horizontalLookRotation;

or maybe combine them 1st than setting them.