Unity logo
取消
购物车
应用
Sell Assets

11000+款5星资源

8.5万+用户参与评分

10万+社区成员鼎力支持

每款资源都经过 Unity 审核

首页
工具
输入管理
此内容由第三方提供商托管,该第三方提供商在未接受Targeting Cookies的情况下不允许观看视频。如果您想观看来自这些提供商的视频,请将“Targeting Cookie”的Cookie偏好设置为“是”。
1/9
A Unity Extension Plugin that gives you the ability to control the actual position of your Hardware (OS) Cursor in your screen via Scripting. Only for Windows.
可编程渲染管线(SRP)兼容性
Unity可编程渲染管线(SRP)是让您能够通过C#脚本控制渲染的一个功能。SRP是支撑通用渲染管线(URP)和高清渲染管线(HDRP)的底层技术。
Unity版本内置渲染管线通用渲染管线(URP)高清渲染管线(HDRP)
2019.4.40f1
兼容
兼容
兼容
描述

Supports: All Unity versions



With nearly 100% happy customers this is a reliable solution.



Summary:


"Set Cursor Position" is an Unity Plugin that gives you the ability to control the actual position of your Hardware (OS) Cursor in your screen via Scripting.


Not only that but you can also :


-Emulate mouse clicks


-Emulate scrolling


-Save/load positions


-Cursor can be set to go outside of the unity window !!


[NEW] Multi Monitor Support


[NEW] Fullscreen Support


[NEW] JoyStick Support


There are tons of creative ways to use it and implement it to your games/programms.



Works on Windows only. Both for unity free and pro.


The package comes with 2 Example Scenes and many scripts to help you start and understand its use.


Can be combined with Unity's current API to achieve great effects !



What you actually get:



~Code examples


- Canvas & OnGUI Examples


- Local-Position Examples


- Global-Position Examples


- Store/Load Position Examples


- JoyStick Example


- ScrollWheel Example


- Movement Simulation Examples


- KeyBinding Examples


+ a few more



~Source Code



~Email support

(As far as its possible and related to the plugin)



~New Scripting API.


~CrossSceneSupport : boolean;


-HardwareCursor.SetPosition (Vector2 Pos);


-HardwareCursor.SetPosition (int x,int y);


-HardwareCursor.SetLocalPosition (Vector2 Pos);


-HardwareCursor.SetLocalPosition (int x,int y);


-HardwareCursor.GetPosition ();


-HardwareCursor.GetLocalPosition ();


-HardwareCursor.SetSavesLength (int Saves);


-HardwareCursor.SavePosition ();


-HardwareCursor.SavePosition (int SaveNumber);


-HardwareCursor.LoadPosition ();


-HardwareCursor.LoadPosition (int LoadNumber);


-HardwareCursor.SimulateMove (Vector2 FinalPosition,float Speed);


-HardwareCursor.SimulateMove (int FinalPositionX,int FinalPositionY,float Speed);


-HardwareCursor.SimulateMove (Vector2 FinalPosition,float Speed,bool Automaticaly);


-HardwareCursor.SimulateMove (int FinalPositionX,int FinalPositionY,float Speed,bool Automaticaly);


-HardwareCursor.SimulateAutoMove (Vector2 FinalPosition,float Speed);


-HardwareCursor.SimulateAutoMove (int FinalPositionX,int FinalPositionY,float Speed);


-HardwareCursor.SimulateLocalMove (Vector2 FinalPosition,float Speed);


-HardwareCursor.SimulateLocalMove (int FinalPositionX,int FinalPositionY,float Speed);


-HardwareCursor.SimulateLocalMove (Vector2 FinalPosition,float Speed,bool Automaticaly);


-HardwareCursor.SimulateLocalMove (int FinalPositionX,int FinalPositionY,float Speed,bool Automaticaly);


-HardwareCursor.SimulateAutoLocalMove (Vector2 FinalPosition,float Speed);


-HardwareCursor.SimulateAutoLocalMove (int FinalPositionX,int FinalPositionY,float Speed);


-HardwareCursor.SimulateController (float Horizontal,float Vertical);


-HardwareCursor.SimulateController (float Horizontal,float Vertical,float Speed);


-HardwareCursor.SimulateSmoothController (float Horizontal,float Vertical,float Speed,float SpeedScale); -HardwareCursor.ScrollWheel (int Direction);


-HardwareCursor.LeftClick();


-HardwareCursor.LeftClickDown();


-HardwareCursor.LeftClickUp();


-HardwareCursor.RightClick();


-HardwareCursor.RightClickDown();


-HardwareCursor.RightClickUp();


-HardwareCursor.MiddleClick();


-HardwareCursor.MiddleClickDown();


-HardwareCursor.MiddleClickUp();


-HardwareCursor.LeftClickEquals(KeyCode KeycodeId);


-HardwareCursor.RightClickEquals(KeyCode KeycodeId);


-HardwareCursor.MiddleClickEquals(KeyCode KeycodeId);



Unity uselful API:


-Cursor.visible : boolean;


-Cursor.lockState : CursorLockMode


-Input.GetKey(KeyCode.Mouse0) // Mouse1 and Mouse2 and so on...


-Input.GetKeyDown(KeyCode.Mouse0)


-Input.GetKeyUp(KeyCode.Mouse0)


and many more...



Example Uses:


Simulate mouse movement with external controllers like the ones from PS3 or Xbox.


Restrict cursor within the window or a certain area.


Rotate a character with a mouse button and when u press it down turn the cursor invisible and store its position so u can turn it visible and load its position when u release the button. Lock the cursor in a desired position not only in the center by constantly calling HardwareCursor.SetCursorPosition() every frame or so.


Make the cursor teleport in random coordinates.


and many more, just use your imagination and creativity...



Conctact Info :


Email : contact@darknessblade.com


Demo - https://www.darknessblade.com/Downloads/CursorPositionDemo.rar


Website - https://www.darknessblade.com/


Discord - https://discord.gg/UTApUes8dr


Facebook - https://www.facebook.com/Darkness-Blade-1432547537008058


Youtube - https://www.youtube.com/c/DarknessBlade


Twitch - https://www.twitch.tv/darknessblade_


Forum Thread: https://forum.unity.com/threads/set-cursor-position.242832/#post-1606714


Set Cursor Position + Mouse Clicks API

(23)
178 users have favourite this asset
(178)
$19.90
席位
1
更新的价格和增值税在结算时计算
退款政策
该资源受Unity资源商店退款政策约束。有关详细信息,请参见《最终用户许可协议》(EULA)中的第2.9.3节。
安全结账方式:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
许可证类型
文件大小
1.2 MB
最新版本
3.00
最新发布日期
2024年2月15日
原始 Unity 版本
4.0.0
高品质资源
11000+款5星资源
深受用户信赖
8.5万+用户参与评分
强大的社区支持
10万+社区成员鼎力支持
Unity logo
语言
反馈
合作伙伴计划
合作伙伴
USD
EUR
Copyright © 2025 Unity Technologies
所有价格不包含税
USD
EUR