- Home /
Question by
Cake_Nachos · Jan 12 at 11:12 PM ·
c#mousewarp
How do I set the mouse position with mouse.warpposition()?
(I'm a beginner)
I really don't understand how to use this. I looked at the unity documentation but when I try doing this:
void Update()
{
if(Input.GetMouseButton(1))
{
Mouse.current.WarpCursorPosition(new Vector2(10, 10));
}
}
It gives me an error. Do I need to add something extra at the top, like using blahhbalhh.blahblah; ? I'm just confused. Any help is appreciated.
Comment
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
What is wrong with my Code? (MouseDown event doesn't work) 1 Answer
Simulate Mouseclick with a kinect. 1 Answer
GameObject clones won't add a point. 0 Answers