Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity set mouse

using System.Runtime.InteropServices;
    [DllImport("user32.dll")]
    static extern bool SetCursorPos(int X, int Y);
    int xPos = 30, yPos = 1000;   
    SetCursorPos(xPos,yPos);//Call this when you want to set the mouse position
Comment

PREVIOUS NEXT
Code Example
Csharp :: replace index in string c# 
Csharp :: get description from enum c# 
Csharp :: function in c# to do addition 
Csharp :: get diff btw datetimes two C# 
Csharp :: c# jobject to string 
Csharp :: OnMousedown unity ui 
Csharp :: hash table in c# 
Csharp :: unity rotate direction by angle 
Csharp :: c# unity 
Csharp :: list index out of range c# 
Csharp :: c# messagebox result 
Csharp :: c# inline array initialization 
Csharp :: unity how to set rigidbody velocity 
Csharp :: c# how to call a method from another class 
Csharp :: unity button onclick 
Csharp :: c# for loop next iteration 
Csharp :: increment operator c# 
Csharp :: debug.log 
Csharp :: route attribute controller with parameter asp.net core 
Csharp :: unity ihandler click right button 
Csharp :: parsing string to int c# 
Csharp :: Gameobject.Find in unityC# 
Csharp :: remove all array elements c# 
Csharp :: sleep in c# 
Csharp :: delete the particular line in files in c# 
Csharp :: how to make a character run in unity 
Csharp :: convert list string to list long c# 
Csharp :: how to write a list to csv c# 
Csharp :: IHttpContextAccessor 
Csharp :: c# get function name 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =