Input.GetAxis("Mouse Y") is Always ZERO!

No matter how mouse moves,

GUILayout.Box(""+Input.GetAxis("Mouse Y"));

is always ZERO!
Anyone has the same experience??how to fix this problem?

This exact code (copied and pasted) works OK for me, so there is no problem with that. Try adding a public variable to your script and then setting it to the value of Mouse Y on each frame. Check this value in the inspector to see if it changes as you move the mouse. If it does, it suggests there is something wrong with the GUI display code. If it doesn’t, then check out the Input Manager settings.

Are you calling this line of code in the OnGUI? In an Update you’ll sometimes get weird results (Like this) for certian functions and properties.

thanks for reply!
it’s ok now,the reason is :i create two “game tab”…