Set Cursor Position + Mouse Clicks API View on Asset Store (opens in new tab)

Package details

Latest version
3.00
Last updated
First released
Unity version
4.0.0 or later
Package size
1.2 MB
Files
12
Favorites
176
Views in the past week
14

Price tracking

Last checked
Tracked since
Lowest recorded
Free on

Keywords

Set Cursor Position + Mouse Clicks API

by Darkness Blade (opens in new tab)

4.7 / 5 · 23 ratings

Ratings by stars
Number of ratings for each star rating
5 stars 19
4 stars 2
3 stars 1
2 stars 0
1 star 1
  • Price drop

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.

Discount -50% Previous price $19.90 Price $10.00

Get 50% off on Asset Store (opens in new tab)

Affiliate link · Purchases support this site

Price history

Last 6 months

USD
Price history for Set Cursor Position + Mouse Clicks API, 6 months Current $10.00; lowest $10.00; highest $10.00 in this period. $0 $5 $10 Jun Jul Aug Sep Oct Nov

Asset preview

1 / 8

Set Cursor Position + Mouse Clicks API screenshot 1

Set Cursor Position + Mouse Clicks API screenshot 1

About this asset

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 : [email protected]

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

From the publisher's Asset Store listing.

Compatibility

Render pipelines supported in each Unity version
Unity version Built-in URP HDRP Custom
2019.4.40f1 Compatible Compatible Compatible Compatible

As listed on the Asset Store.