Get cursor position in c#?

How can I get mouse cursor position in my game or something like that? In c# Thanks.

Have you ever looked into the scripting reference?

Unity is so well documented and all Unity classes are available on all languages (at least JS and C# i'm sure. But i don't know anything about boo)

All mouse-related stuff is handled by the Input Class which you can find more details of here:

http://unity3d.com/support/documentation/ScriptReference/Input.html

However, in 3D games, Input.mousePosition is not the best way to test whether the mouse is over an object. Instead, check for ray collisions. You can find a lot more about how to test for rays here:

http://unity3d.com/support/documentation/ScriptReference/Physics.Raycast.html?from=RaycastHit

http://answers.unity3d.com/questions/33747/using-raycast-to-detect-whats-hit-and-if-its-tagged

Vector3 mousePosition = Input.mousePosition;

Script Reference: http://unity3d.com/support/documentation/ScriptReference/Input-mousePosition.html