📜  unity 设置光标位置 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:39.335000             🧑  作者: Mango

代码示例2
//C#
    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