MouseLook.cs - Limit to x-and-y-axes doesn´t work?

Hi,

i´m using the MouseLook.cs script and want to limit it, so i change the predefined axes to “MouseXAndY”-vaule in the inspector.
However the z-value of the rotation changes in the inspector-view on runtime, so the cameraview look transverse.

How can i limit it correctly? Would be great to know.
Thanks

Are the values of the Z rotation things like 3.1e-09? These are actually tiny values that are the result of round-off errors. They shouldn’t make any difference to the behaviour of the camera.